Fix bug due to image_filename -> image_identifier

This commit is contained in:
Christophe Vilayphiou 2012-02-27 18:40:08 +08:00
parent 680b28023a
commit 0029ef2b5a
3 changed files with 2 additions and 3 deletions

View File

@ -100,7 +100,6 @@ class Panel::Announcement::BackEnd::BulletinsController < ApplicationController
# @bulletin.image.clear if params[:bulletin][:image_del] == '1'
if params[:bulletin][:image_del] == '1'
@bulletin.remove_image!
@bulletin.image_filename = nil
# @bulletin.image_del = nil
params[:bulletin][:image_del] = nil
end

View File

@ -21,7 +21,7 @@
</li>
<li>
<%#= image_tag(@bulletin.image.url, :size => "320x240") if @bulletin.image.file %>
<%= link_to image_tag(@bulletin.image.url, :size => "320x240"), @bulletin.image.url, {:target => '_blank', :title => @bulletin.image_filename} if @bulletin.image.file %>
<%= link_to image_tag(@bulletin.image.url, :size => "320x240"), @bulletin.image.url, {:target => '_blank', :title => @bulletin.image_identifier} if @bulletin.image.file %>
</li>
<li>
<b><%= t('announcement.subtitle') %></b>

View File

@ -21,7 +21,7 @@
</li>
<li>
<%#= image_tag(@bulletin.image.url, :size => "320x240") if @bulletin.image.file %>
<%= link_to image_tag(@bulletin.image.url, :size => "320x240"), @bulletin.image.url, {:target => '_blank', :title => @bulletin.image_filename} if @bulletin.image.file %>
<%= link_to image_tag(@bulletin.image.url, :size => "320x240"), @bulletin.image.url, {:target => '_blank', :title => @bulletin.image_identifier} if @bulletin.image.file %>
</li>
<li>
<b><%= t('announcement.subtitle') %></b>