about summary refs log tree commit diff
path: root/app/views/directories
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-12-18 12:02:54 +0100
committerThibG <thib@sitedethib.com>2018-12-20 14:51:12 +0100
commit9e04b2e8a4fa6cb45f59000faf2902a727973add (patch)
tree94b514c6be70980caac8fc28599d180c4dc6c791 /app/views/directories
parent1b18eb49e378e31e805e84563eb5d3c88ad3cf7e (diff)
Per-user followers count display in profile directory
Diffstat (limited to 'app/views/directories')
-rw-r--r--app/views/directories/index.html.haml7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/directories/index.html.haml b/app/views/directories/index.html.haml
index 7f6ad13e6..8d136a31f 100644
--- a/app/views/directories/index.html.haml
+++ b/app/views/directories/index.html.haml
@@ -28,10 +28,9 @@
                 %td.accounts-table__count.optional
                   = number_to_human account.statuses_count, strip_insignificant_zeros: true
                   %small= t('accounts.posts', count: account.statuses_count).downcase
-                - unless Setting.hide_followers_count
-                  %td.accounts-table__count.optional
-                    = number_to_human account.followers_count, strip_insignificant_zeros: true
-                    %small= t('accounts.followers', count: account.followers_count).downcase
+                %td.accounts-table__count.optional
+                  = Setting.hide_followers_count ? '-' : (number_to_human account.followers_count, strip_insignificant_zeros: true)
+                  %small= t('accounts.followers', count: account.followers_count).downcase
                 %td.accounts-table__count
                   - if account.last_status_at.present?
                     %time.time-ago{ datetime: account.last_status_at.iso8601, title: l(account.last_status_at) }= l account.last_status_at