2019-01-13 20:23:54 +11:00
|
|
|
.attachment-list
|
|
|
|
.attachment-list__icon
|
2024-08-20 21:52:27 +10:00
|
|
|
= material_symbol 'link'
|
2019-01-13 20:23:54 +11:00
|
|
|
%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
|