diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-12-17 20:36:30 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-12-20 14:51:12 +0100 |
commit | a1c56fcef124b08fc2676d38fd79ed72d660d865 (patch) | |
tree | 4f409ee76e3a68ad7ff028974389523f8d8ce952 /app/views/directories | |
parent | 0cd367e2954fd5407461a3c01e9fbfb297575145 (diff) |
Add admin setting to disable followers count
Diffstat (limited to 'app/views/directories')
-rw-r--r-- | app/views/directories/index.html.haml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/directories/index.html.haml b/app/views/directories/index.html.haml index 88706def7..7f6ad13e6 100644 --- a/app/views/directories/index.html.haml +++ b/app/views/directories/index.html.haml @@ -28,9 +28,10 @@ %td.accounts-table__count.optional = number_to_human account.statuses_count, strip_insignificant_zeros: true %small= t('accounts.posts', count: account.statuses_count).downcase - %td.accounts-table__count.optional - = number_to_human account.followers_count, strip_insignificant_zeros: true - %small= t('accounts.followers', count: account.followers_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 - 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 |