mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 19:13:13 +01:00
4fb94c758e
* Add attachment list fallback to public pages Fixes #6714 * Refactor attachments lists
8 lines
263 B
Text
8 lines
263 B
Text
.attachment-list
|
|
.attachment-list__icon
|
|
= fa_icon 'link'
|
|
%ul.attachment-list__list
|
|
- attachments.each do |media|
|
|
%li
|
|
- url = media.remote_url.presence || media.file.url
|
|
= link_to File.basename(url), url, title: media.description
|