about summary refs log tree commit diff
path: root/app/views/stream_entries
diff options
context:
space:
mode:
authorkibigo! <marrus-sh@users.noreply.github.com>2017-07-12 02:03:17 -0700
committerkibigo! <marrus-sh@users.noreply.github.com>2017-07-12 02:03:17 -0700
commit79d898ae0ad8c0e66bd63ec3e0904e9e5e7894e8 (patch)
treeee8d832ed2f11e9afe62daf0e586a86004eb8d98 /app/views/stream_entries
parentbcf7ee48e94cd2e4d2de28e8854e7f0e2b5cad1f (diff)
parent056b5ed72f6d980bceeb49eb249b8365fe8fce66 (diff)
Merge upstream!! #64 <3 <3
Diffstat (limited to 'app/views/stream_entries')
-rw-r--r--app/views/stream_entries/_content_spoiler.html.haml10
-rw-r--r--app/views/stream_entries/_detailed_status.html.haml6
-rw-r--r--app/views/stream_entries/_simple_status.html.haml3
3 files changed, 10 insertions, 9 deletions
diff --git a/app/views/stream_entries/_content_spoiler.html.haml b/app/views/stream_entries/_content_spoiler.html.haml
index 0bd6314d0..fb42d3f57 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')
diff --git a/app/views/stream_entries/_detailed_status.html.haml b/app/views/stream_entries/_detailed_status.html.haml
index 589d647ce..157a7e7fb 100644
--- a/app/views/stream_entries/_detailed_status.html.haml
+++ b/app/views/stream_entries/_detailed_status.html.haml
@@ -18,13 +18,11 @@
       - unless status.media_attachments.empty?
         - if status.media_attachments.first.video?
           .video-player><
-            - if status.sensitive?
-              = render partial: 'stream_entries/content_spoiler'
+            = render partial: 'stream_entries/content_spoiler', locals: { sensitive: status.sensitive? }
             %video.u-video{ src: status.media_attachments.first.file.url(:original), loop: true }
         - else
           .detailed-status__attachments><
-            - if status.sensitive?
-              = render partial: 'stream_entries/content_spoiler'
+            = render partial: 'stream_entries/content_spoiler', locals: { sensitive: status.sensitive? }
             .status__attachments__inner<
               - status.media_attachments.each do |media|
                 = render partial: 'stream_entries/media', locals: { media: media }
diff --git a/app/views/stream_entries/_simple_status.html.haml b/app/views/stream_entries/_simple_status.html.haml
index 88750180f..b44f9820f 100644
--- a/app/views/stream_entries/_simple_status.html.haml
+++ b/app/views/stream_entries/_simple_status.html.haml
@@ -23,8 +23,7 @@
 
       - unless status.media_attachments.empty?
         .status__attachments><
-          - if status.sensitive?
-            = render partial: 'stream_entries/content_spoiler'
+          = render partial: 'stream_entries/content_spoiler', locals: { sensitive: status.sensitive? }
           - if status.media_attachments.first.video?
             .status__attachments__inner<
               .video-item<