diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-16 11:49:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-07-16 11:49:22 +0000 |
commit | 742440e0385956a94079cfa5ec22f7f0e6cfcd73 (patch) | |
tree | b342048782c81bf5ae3a76667a3a3aa85262d3a8 | |
parent | e57b5ddbcc7d9f962fdc1679051eee5780643532 (diff) | |
download | redmine-742440e0385956a94079cfa5ec22f7f0e6cfcd73.tar.gz redmine-742440e0385956a94079cfa5ec22f7f0e6cfcd73.zip |
Merged r16813 (#26379).
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@16819 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/helpers/application_helper.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 52a405211..3409bb7be 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -220,11 +220,12 @@ module ApplicationHelper end def thumbnail_tag(attachment) + thumbnail_size = Setting.thumbnails_size.to_i link_to( image_tag( thumbnail_path(attachment), - :srcset => "#{thumbnail_path(attachment, :size => Setting.thumbnails_size.to_i * 2)} 2x", - :width => Setting.thumbnails_size + :srcset => "#{thumbnail_path(attachment, :size => thumbnail_size * 2)} 2x", + :style => "max-width: #{thumbnail_size}px; max-height: #{thumbnail_size}px;" ), named_attachment_path( attachment, |