Add attachment list fallback to public pages (#9780)

* Add attachment list fallback to public pages

Fixes #6714

* Refactor attachments lists
This commit is contained in:
ThibG
2019-01-13 10:23:54 +01:00
committed by Eugen Rochko
parent 9ee9cb549b
commit 4fb94c758e
5 changed files with 28 additions and 6 deletions

View File

@@ -0,0 +1,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