about summary refs log tree commit diff
path: root/app/views/stream_entries/_attachment_list.html.haml
blob: d9706f47bd849a1db87c24e30dc431345d3beb7e (plain) (blame)
1
2
3
4
5
6
7
8
.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