about summary refs log tree commit diff
path: root/app/views/stream_entries/_content_spoiler.html.haml
diff options
context:
space:
mode:
authorabcang <abcang1015@gmail.com>2017-07-07 04:31:03 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-07-06 21:31:03 +0200
commitf76e71825da3b185e549cd3267813fd12cee4050 (patch)
treefe4114255f5ade5356defd71dfc5de574c8d32f7 /app/views/stream_entries/_content_spoiler.html.haml
parent6bf6d35637abc691cf85b1c96a54c74af8b8bc2e (diff)
Improve Activity stream spoiler (#4088)
Diffstat (limited to 'app/views/stream_entries/_content_spoiler.html.haml')
-rw-r--r--app/views/stream_entries/_content_spoiler.html.haml10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/views/stream_entries/_content_spoiler.html.haml b/app/views/stream_entries/_content_spoiler.html.haml
index d80ea46a0..798dfce67 100644
--- a/app/views/stream_entries/_content_spoiler.html.haml
+++ b/app/views/stream_entries/_content_spoiler.html.haml
@@ -1,3 +1,7 @@
-.media-spoiler
-  %span= t('stream_entries.sensitive_content')
-  %span= t('stream_entries.click_to_show')
+.media-spoiler-wrapper{ class: sensitive == false && 'media-spoiler-wrapper__visible' }
+  .spoiler-button
+    .icon-button.overlayed
+      %i.fa.fa-fw.fa-eye
+  .media-spoiler
+    %span= t('stream_entries.sensitive_content')
+    %span= t('stream_entries.click_to_show')