Project

General

Profile

Defect #26379 » defect-26379.diff

Go MAEDA, 2017-07-09 08:37

View differences:

app/helpers/application_helper.rb (working copy)
220 220
  end
221 221

  
222 222
  def thumbnail_tag(attachment)
223
    thumbnail_size = Setting.thumbnails_size.to_i
223 224
    link_to(
224 225
      image_tag(
225 226
        thumbnail_path(attachment),
226
        :srcset => "#{thumbnail_path(attachment, :size => Setting.thumbnails_size.to_i * 2)} 2x",
227
        :width => Setting.thumbnails_size
227
        :srcset => "#{thumbnail_path(attachment, :size => thumbnail_size * 2)} 2x",
228
        :style => "max-width: #{thumbnail_size}px; max-height: #{thumbnail_size}px;"
228 229
      ),
229 230
      named_attachment_path(
230 231
        attachment,
(4-4/4)