Defect #26379 » defect-26379.diff
| app/helpers/application_helper.rb (working copy) | ||
|---|---|---|
|
end
|
||
|
def thumbnail_tag(attachment)
|
||
|
thumbnail_size = Setting.thumbnails_size.to_i
|
||
|
link_to(
|
||
|
image_tag(
|
||
|
thumbnail_path(attachment),
|
||
|
:srcset => "#{thumbnail_path(attachment, :size => Setting.thumbnails_size.to_i * 2)} 2x",
|
||
|
:width => Setting.thumbnails_size
|
||
|
:srcset => "#{thumbnail_path(attachment, :size => thumbnail_size * 2)} 2x",
|
||
|
:style => "max-width: #{thumbnail_size}px; max-height: #{thumbnail_size}px;"
|
||
|
),
|
||
|
named_attachment_path(
|
||
|
attachment,
|
||
- « Previous
- 1
- 2
- 3
- 4
- Next »