Project

General

Profile

Feature #24927 » 0002-Hires-2x-DPR-image-support-for-Thumbnails.patch

Jan from Planio www.plan.io, 2017-01-26 12:35

View differences:

app/helpers/application_helper.rb
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
(1-1/6)