From ef3833b46584e90942038ba01a111f3fd71a9d41 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 30 Jan 2017 19:42:04 +0000 Subject: [PATCH] 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 --- app/helpers/application_helper.rb | 14 +++++++++++--- 1 file 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? -- 2.39.5