Feature #24927 » 0003-Whitespace-only-reorg-of-ApplicationHelper-thumbnail.patch
| app/helpers/application_helper.rb | ||
|---|---|---|
| 220 | 220 |
end |
| 221 | 221 | |
| 222 | 222 |
def thumbnail_tag(attachment) |
| 223 |
link_to image_tag(thumbnail_path(attachment), :srcset => "#{thumbnail_path(attachment, :size => Setting.thumbnails_size.to_i * 2)} 2x"),
|
|
| 224 |
named_attachment_path(attachment, attachment.filename), |
|
| 223 |
link_to( |
|
| 224 |
image_tag( |
|
| 225 |
thumbnail_path(attachment), |
|
| 226 |
:srcset => "#{thumbnail_path(attachment, :size => Setting.thumbnails_size.to_i * 2)} 2x"
|
|
| 227 |
), |
|
| 228 |
named_attachment_path( |
|
| 229 |
attachment, |
|
| 230 |
attachment.filename |
|
| 231 |
), |
|
| 225 | 232 |
:title => attachment.filename |
| 233 |
) |
|
| 226 | 234 |
end |
| 227 | 235 | |
| 228 | 236 |
def toggle_link(name, id, options={})
|
| ... | ... | |
| 335 | 343 |
content_tag 'p', l(:label_no_data), :class => "nodata" |
| 336 | 344 |
end |
| 337 | 345 |
end |
| 338 |
|
|
| 346 | ||
| 339 | 347 |
# Returns an array of projects that are displayed in the quick-jump box |
| 340 | 348 |
def projects_for_jump_box(user=User.current) |
| 341 | 349 |
if user.logged? |