0002-Hires-2x-DPR-image-support-for-Thumbnails.patch

Jan from Planio www.plan.io, 2017-01-26 12:35

Download (897 Bytes)

View differences:

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
227
-