fix for letting ad_banner display even when file in not uploaded

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-04-13 16:14:43 +08:00
1 parent d646a9dff1
commit 0fe5baf93f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -58,7 +58,7 @@
cursor: pointer;
}
.select-role {
display:none;
display:none;
padding: 10px 0;
}
.file-upload {
@@ -1,5 +1,5 @@
<li class="span3" id = 'asd'>
<%= image_tag ad_image.file %>
<%= image_tag ad_image.file rescue nil%>
<p>
<%= ad_image.display? ? '[Showing]' : '[NotShawing]' %>
<%= "#{ad_image.post_date ||'NeedReset' }~#{ad_image.unpost_date || 'NeedReset'}" %>