fix for letting ad_banner display even when file in not uploaded
This commit is contained in:
parent
d646a9dff1
commit
0fe5baf93f
|
@ -58,7 +58,7 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.select-role {
|
.select-role {
|
||||||
display:none;
|
display:none;
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
}
|
}
|
||||||
.file-upload {
|
.file-upload {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<li class="span3" id = 'asd'>
|
<li class="span3" id = 'asd'>
|
||||||
<%= image_tag ad_image.file %>
|
<%= image_tag ad_image.file rescue nil%>
|
||||||
<p>
|
<p>
|
||||||
<%= ad_image.display? ? '[Showing]' : '[NotShawing]' %>
|
<%= ad_image.display? ? '[Showing]' : '[NotShawing]' %>
|
||||||
<%= "#{ad_image.post_date ||'NeedReset' }~#{ad_image.unpost_date || 'NeedReset'}" %>
|
<%= "#{ad_image.post_date ||'NeedReset' }~#{ad_image.unpost_date || 'NeedReset'}" %>
|
||||||
|
|
Reference in New Issue