_attachment_list.html.haml 263 B

12345678
  1. .attachment-list
  2. .attachment-list__icon
  3. = fa_icon 'link'
  4. %ul.attachment-list__list
  5. - attachments.each do |media|
  6. %li
  7. - url = media.remote_url.presence || media.file.url
  8. = link_to File.basename(url), url, title: media.description