Feature #24927 » 0002-Hires-2x-DPR-image-support-for-Thumbnails.patch
app/helpers/application_helper.rb | ||
---|---|---|
220 | 220 |
end |
221 | 221 | |
222 | 222 |
def thumbnail_tag(attachment) |
223 |
link_to image_tag(thumbnail_path(attachment)), |
|
223 |
link_to image_tag(thumbnail_path(attachment), :srcset => "#{thumbnail_path(attachment, :size => Setting.thumbnails_size.to_i * 2)} 2x"),
|
|
224 | 224 |
named_attachment_path(attachment, attachment.filename), |
225 | 225 |
:title => attachment.filename |
226 | 226 |
end |