fix for letting ad_banner display even when file in not uploaded

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

View File

@ -58,7 +58,7 @@
cursor: pointer;
}
.select-role {
display:none;
display:none;
padding: 10px 0;
}
.file-upload {

View File

@ -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'}" %>