Commit 543ba252 authored by jplang's avatar jplang

Hires (2x DPR) image support for Thumbnails (#24927).

Patch by Jan Schulz-Hofen.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 650bc136
......@@ -220,7 +220,7 @@ module ApplicationHelper
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment