Shorten display of large numbers on public profiles (#4711)

This commit is contained in:
Eugen Rochko
2017-08-27 17:04:45 +02:00
committed by GitHub
parent f92d991e52
commit 15093f9113
3 changed files with 16 additions and 5 deletions

View File

@ -37,15 +37,15 @@
.details-counters
.counter{ class: active_nav_class(short_account_url(account)) }
= link_to short_account_url(account), class: 'u-url u-uid' do
%span.counter-number= number_with_delimiter account.statuses_count
%span.counter-number= number_to_human account.statuses_count
%span.counter-label= t('accounts.posts')
.counter{ class: active_nav_class(account_following_index_url(account)) }
= link_to account_following_index_url(account) do
%span.counter-number= number_with_delimiter account.following_count
%span.counter-number= number_to_human account.following_count
%span.counter-label= t('accounts.following')
.counter{ class: active_nav_class(account_followers_url(account)) }
= link_to account_followers_url(account) do
%span.counter-number= number_with_delimiter account.followers_count
%span.counter-number= number_to_human account.followers_count
%span.counter-label= t('accounts.followers')