]> cat aescling's git repositories - mastodon.git/commitdiff
Change number format on about page from full to shortened (#15327)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 14 Dec 2020 04:09:14 +0000 (05:09 +0100)
committerGitHub <noreply@github.com>
Mon, 14 Dec 2020 04:09:14 +0000 (05:09 +0100)
app/views/about/more.html.haml

index c2168e1f585742d0f4078f6430583997a5de6153..109b5fa863fb548739eea79459a09e4716b4a82a 100644 (file)
         .row__information-board
           .information-board__section
             %span= t 'about.user_count_before'
-            %strong= number_with_delimiter @instance_presenter.user_count
+            %strong= number_to_human @instance_presenter.user_count, strip_insignificant_zeros: true
             %span= t 'about.user_count_after', count: @instance_presenter.user_count
           .information-board__section
             %span= t 'about.status_count_before'
-            %strong= number_with_delimiter @instance_presenter.status_count
+            %strong= number_to_human @instance_presenter.status_count, strip_insignificant_zeros: true
             %span= t 'about.status_count_after', count: @instance_presenter.status_count
         .row__mascot
           .landing-page__mascot