about summary refs log tree commit diff
path: root/app/views/stream_entries/_attachment_list.html.haml
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-01-14 11:48:36 +0100
committerGitHub <noreply@github.com>2019-01-14 11:48:36 +0100
commit077639c27409f897e87522dd18a51801b6cbc40d (patch)
treea70b542e4bb88ed78d221765b5a675de0e323626 /app/views/stream_entries/_attachment_list.html.haml
parent2cfa55185a5fc7d93a160a4e9a4730aae6725b0f (diff)
parent4cec7a77c37e23117323a4ed8f609939ab50b4d6 (diff)
Merge pull request #886 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/views/stream_entries/_attachment_list.html.haml')
-rw-r--r--app/views/stream_entries/_attachment_list.html.haml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/stream_entries/_attachment_list.html.haml b/app/views/stream_entries/_attachment_list.html.haml
new file mode 100644
index 000000000..d9706f47b
--- /dev/null
+++ b/app/views/stream_entries/_attachment_list.html.haml
@@ -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