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