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; | ||||
| } | ||||
| .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'}" %> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue