about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-11-15 18:45:54 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-11-15 18:45:54 +0100
commita4313224d93cd762fd500e687e33247025035af8 (patch)
tree164f9febf43ebb48bbfb24dce39d8209d8889a2c /app/views
parent489bd99803cde976d78c312b0079d8de50f3617c (diff)
Improve how public status pages look slightly
Diffstat (limited to 'app/views')
-rw-r--r--app/views/stream_entries/_status.html.haml7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/stream_entries/_status.html.haml b/app/views/stream_entries/_status.html.haml
index fc21e6c45..2edc8bc3f 100644
--- a/app/views/stream_entries/_status.html.haml
+++ b/app/views/stream_entries/_status.html.haml
@@ -31,9 +31,10 @@
 
       .content= Formatter.instance.format(proper_status(status))
 
-      %ul.media-attachments
-        - (status.reblog? ? status.reblog : status).media_attachments.each do |media|
-          %li.transparent-background= link_to '', media.file.url, style: "background-image: url(#{media.file.url(:small)})", target: '_blank'
+      - if (status.reblog? ? status.reblog : status).media_attachments.size > 0
+        %ul.media-attachments
+          - (status.reblog? ? status.reblog : status).media_attachments.each do |media|
+            %li.transparent-background= link_to '', media.file.url, style: "background-image: url(#{media.file.url(:small)})", target: '_blank'
 
 - if include_threads
   = render partial: 'status', collection: @descendants, as: :status, locals: { is_successor: true }