From: Jean-Philippe Lang Date: Mon, 30 Jan 2017 19:41:31 +0000 (+0000) Subject: Hires (2x DPR) image support for Thumbnails (#24927). X-Git-Tag: 3.4.0~320 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=721843a5482a5754ef796471c14ed087f21fe740;p=redmine.git Hires (2x DPR) image support for Thumbnails (#24927). Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@16314 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ced854693..c432472bc 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -220,7 +220,7 @@ module ApplicationHelper end def thumbnail_tag(attachment) - link_to image_tag(thumbnail_path(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), :title => attachment.filename end