Project

General

Profile

Feature #24927 » 0004-set-thumbnail-width-on-image-tag-to-avoid-too-wide-w.patch

Jan from Planio www.plan.io, 2017-01-28 19:19

View differences:

app/helpers/application_helper.rb
link_to(
image_tag(
thumbnail_path(attachment),
:srcset => "#{thumbnail_path(attachment, :size => Setting.thumbnails_size.to_i * 2)} 2x"
:srcset => "#{thumbnail_path(attachment, :size => Setting.thumbnails_size.to_i * 2)} 2x",
:width => Setting.thumbnails_size
),
named_attachment_path(
attachment,
(5-5/6)