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
223 223
    link_to(
224 224
      image_tag(
225 225
        thumbnail_path(attachment),
226
        :srcset => "#{thumbnail_path(attachment, :size => Setting.thumbnails_size.to_i * 2)} 2x"
226
        :srcset => "#{thumbnail_path(attachment, :size => Setting.thumbnails_size.to_i * 2)} 2x",
227
        :width => Setting.thumbnails_size 
227 228
      ),
228 229
      named_attachment_path(
229 230
        attachment,
(5-5/6)