system bin, 坑

This commit is contained in:
yanxd 2014-06-13 15:42:59 +08:00
parent 7456e37e8a
commit 93d13c8867
3 changed files with 4 additions and 5 deletions

View File

@ -193,9 +193,8 @@ module ApplicationHelper
end
def thumbnail_tag(attachment)
imagepath = named_attachment_path(attachment, attachment.filename)
link_to image_tag(imagepath),
imagepath ,
link_to image_tag(thumbnail_path(attachment)),
named_attachment_path(attachment, attachment.filename),
:title => attachment.filename
end

View File

@ -33,7 +33,7 @@
<% if images.any? %>
<div class="thumbnails">
<% images.each do |attachment| %>
<div><%= thumbnail_small_tag(attachment) %></div>
<div><%= thumbnail_tag(attachment) %></div>
<% end %>
</div>
<% end %>

View File

@ -173,7 +173,7 @@ default:
# Absolute path (e.g. /usr/bin/convert, c:/im/convert.exe) to
# the ImageMagick's `convert` binary. Used to generate attachment thumbnails.
imagemagick_convert_command: '/home/pdl/redmine-2.3.1-1/common/bin/convert'
imagemagick_convert_command: '/home/pdl/redmine-2.3.2-0/common/bin/convert'
# Configuration of RMagcik font.
#