diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-30 19:42:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-30 19:42:04 +0000 |
commit | ef3833b46584e90942038ba01a111f3fd71a9d41 (patch) | |
tree | b031c9d464373d6a992538f5eaf58800212fbf28 | |
parent | 721843a5482a5754ef796471c14ed087f21fe740 (diff) | |
download | redmine-ef3833b46584e90942038ba01a111f3fd71a9d41.tar.gz redmine-ef3833b46584e90942038ba01a111f3fd71a9d41.zip |
Whitespace-only reorg of ApplicationHelper#thumbnail_tag (#24927).
Patch by Jan Schulz-Hofen.
git-svn-id: http://svn.redmine.org/redmine/trunk@16315 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/helpers/application_helper.rb | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index c432472bc..dd9ecb80e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -220,9 +220,17 @@ module ApplicationHelper end def thumbnail_tag(attachment) - link_to image_tag(thumbnail_path(attachment), :srcset => "#{thumbnail_path(attachment, :size => Setting.thumbnails_size.to_i * 2)} 2x"), - named_attachment_path(attachment, attachment.filename), + link_to( + image_tag( + thumbnail_path(attachment), + :srcset => "#{thumbnail_path(attachment, :size => Setting.thumbnails_size.to_i * 2)} 2x" + ), + named_attachment_path( + attachment, + attachment.filename + ), :title => attachment.filename + ) end def toggle_link(name, id, options={}) @@ -335,7 +343,7 @@ module ApplicationHelper content_tag 'p', l(:label_no_data), :class => "nodata" end end - + # Returns an array of projects that are displayed in the quick-jump box def projects_for_jump_box(user=User.current) if user.logged? |