From bfc39da001225877d243c1344f2403bd65d42cb7 Mon Sep 17 00:00:00 2001 From: Jan Schulz-Hofen Date: Thu, 26 Jan 2017 12:27:50 +0100 Subject: [PATCH 2/2] Hires (2x DPR) image support for Thumbnails --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2a5acc4..1acb761 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 -- 2.7.2