fix preview window size.
This commit is contained in:
parent
0fe5baf93f
commit
4af73ecf6f
|
@ -0,0 +1,4 @@
|
||||||
|
.banner-preview {
|
||||||
|
width: auto;
|
||||||
|
left: 35%;
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
<% if ad_banner -%>
|
<% if ad_banner -%>
|
||||||
<%= link_to 'Preview',"#slideshow-#{ad_banner.title.dehumanize}",:class=>"btn btn-primary btn-large",:data=>{:toggle=>'modal'} %>
|
<%= link_to 'Preview',"#slideshow-#{ad_banner.title.dehumanize}",:class=>"btn btn-primary btn-large",:data=>{:toggle=>'modal'} %>
|
||||||
|
|
||||||
<div class="modal hide fade in" id='slideshow-<%=ad_banner.title.dehumanize%>'>
|
<div class="modal hide fade in banner-preview" id='slideshow-<%=ad_banner.title.dehumanize%>'>
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<a class="close" data-dismiss="modal">×</a>
|
<a class="close" data-dismiss="modal">×</a>
|
||||||
<h3>Modal header</h3>
|
<h3>Modal header</h3>
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
<%= stylesheet_link_tag "admin/ad_banner_preview" %>
|
||||||
|
|
||||||
<div id="post-body-content" class="clear">
|
<div id="post-body-content" class="clear">
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<% @ad_banners.each do |ab| %>
|
<% @ad_banners.each do |ab| %>
|
||||||
|
|
Reference in New Issue