Browse Source

Remove extra stats block

kɜ:ʳ cybredragon 4 months ago
parent
commit
6fe1660669
1 changed files with 6 additions and 27 deletions
  1. 6
    27
      app/views/about/show.html.haml

+ 6
- 27
app/views/about/show.html.haml View File

@@ -56,12 +56,11 @@
56 56
               .row__information-board
57 57
                 .information-board__section
58 58
                   %span= t 'about.user_count_before'
59
-                  %strong= number_with_delimiter @instance_presenter.user_count
59
+                  %strong= number_to_human @instance_presenter.user_count
60 60
                   %span= t 'about.user_count_after', count: @instance_presenter.user_count
61 61
                 .information-board__section
62
-                  %span= t 'about.status_count_before'
63
-                  %strong= number_with_delimiter @instance_presenter.status_count
64
-                  %span= t 'about.status_count_after', count: @instance_presenter.status_count
62
+                  %strong= number_to_human @instance_presenter.active_user_count
63
+                  %span= t 'about.active_count_after'
65 64
               .row__mascot
66 65
                 .landing-page__mascot
67 66
                   .floats.float-1
@@ -93,12 +92,11 @@
93 92
               .row__information-board
94 93
                 .information-board__section
95 94
                   %span= t 'about.user_count_before'
96
-                  %strong= number_with_delimiter @instance_presenter.user_count
95
+                  %strong= number_to_human @instance_presenter.user_count
97 96
                   %span= t 'about.user_count_after', count: @instance_presenter.user_count
98 97
                 .information-board__section
99
-                  %span= t 'about.status_count_before'
100
-                  %strong= number_with_delimiter @instance_presenter.status_count
101
-                  %span= t 'about.status_count_after', count: @instance_presenter.status_count
98
+                  %strong= number_to_human @instance_presenter.active_user_count
99
+                  %span= t 'about.active_count_after'
102 100
               .row__mascot
103 101
                 .landing-page__mascot
104 102
                   = image_tag @instance_presenter.mascot&.file&.url || asset_pack_path('elephant_ui_plane.svg'), alt: ''
@@ -129,22 +127,3 @@
129 127
               = link_to about_more_path do
130 128
                 = t('about.learn_more')
131 129
                 = fa_icon 'angle-double-right'
132
-
133
-        .hero-widget__footer
134
-          .hero-widget__footer__column
135
-            %h4= t 'about.administered_by'
136
-
137
-            = account_link_to @instance_presenter.contact_account
138
-
139
-          .hero-widget__footer__column
140
-            %h4= t 'about.server_stats'
141
-
142
-            %div{ style: 'display: flex' }
143
-              .hero-widget__counter{ style: 'width: 50%' }
144
-                %strong= number_to_human @instance_presenter.user_count, strip_insignificant_zeros: true
145
-                %span= t 'about.user_count_after', count: @instance_presenter.user_count
146
-              .hero-widget__counter{ style: 'width: 50%' }
147
-                %strong= number_to_human @instance_presenter.active_user_count, strip_insignificant_zeros: true
148
-                %span
149
-                  = t 'about.active_count_after'
150
-                  %abbr{ title: t('about.active_footnote') } *

Loading…
Cancel
Save