Add admin setting to disable followers count

This commit is contained in:
Thibaut Girka
2018-12-17 20:36:30 +01:00
committed by ThibG
parent 0cd367e295
commit a1c56fcef1
10 changed files with 29 additions and 11 deletions

View File

@ -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