about summary refs log tree commit diff
path: root/app/views/stream_entries
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-04-07 01:32:40 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:21 -0500
commit618627eb120c615a224916ab160cdb86ac293476 (patch)
tree98a8f587463215b8c00f6a2837769db781eb3010 /app/views/stream_entries
parent8938e343de8078f6594bc05620383d1a3e9bcc86 (diff)
make hide stats option hide all public page stats
Diffstat (limited to 'app/views/stream_entries')
-rw-r--r--app/views/stream_entries/_detailed_status.html.haml18
1 files changed, 11 insertions, 7 deletions
diff --git a/app/views/stream_entries/_detailed_status.html.haml b/app/views/stream_entries/_detailed_status.html.haml
index 23f2920d8..0663b5c47 100644
--- a/app/views/stream_entries/_detailed_status.html.haml
+++ b/app/views/stream_entries/_detailed_status.html.haml
@@ -55,23 +55,27 @@
         = fa_icon('reply-all')
       %span.detailed-status__reblogs>= number_to_human status.replies_count, strip_insignificant_zeros: true
       = " "
-    ·
     - if status.direct_visibility?
+      ·
       %span.detailed-status__link<
         = fa_icon('envelope')
     - elsif status.private_visibility? || status.limited_visibility?
+      ·
       %span.detailed-status__link<
         = fa_icon('lock')
-    - else
+    - elsif user_signed_in? && !@account.user&.setting_hide_stats
+      ·
       = link_to remote_interaction_path(status, type: :reblog), class: 'modal-button detailed-status__link' do
         = fa_icon('retweet')
         %span.detailed-status__reblogs>= number_to_human status.reblogs_count, strip_insignificant_zeros: true
         = " "
-    ·
-    = link_to remote_interaction_path(status, type: :favourite), class: 'modal-button detailed-status__link' do
-      = fa_icon('star')
-      %span.detailed-status__favorites>= number_to_human status.favourites_count, strip_insignificant_zeros: true
-      = " "
+
+    - if user_signed_in? && !@account.user&.setting_hide_stats
+      ·
+      = link_to remote_interaction_path(status, type: :favourite), class: 'modal-button detailed-status__link' do
+        = fa_icon('star')
+        %span.detailed-status__favorites>= number_to_human status.favourites_count, strip_insignificant_zeros: true
+        = " "
 
     - if user_signed_in?
       ·