Skip to content

Commit cd608eb

Browse files
noellabohiyuki2578
authored andcommitted
Add full numeric notation to the dashboard title attribute (mastodon#11911)
1 parent 8e69499 commit cd608eb

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

app/views/admin/dashboard/index.html.haml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,43 @@
44
.dashboard__counters
55
%div
66
= link_to admin_accounts_url(local: 1, recent: 1) do
7-
.dashboard__counters__num= number_to_human @users_count, strip_insignificant_zeros: true
7+
.dashboard__counters__num{ title: number_with_delimiter(@users_count, strip_insignificant_zeros: true) }
8+
= number_to_human @users_count, strip_insignificant_zeros: true
89
.dashboard__counters__label= t 'admin.dashboard.total_users'
910
%div
1011
%div
11-
.dashboard__counters__num= number_to_human @registrations_week, strip_insignificant_zeros: true
12+
.dashboard__counters__num{ title: number_with_delimiter(@registrations_week, strip_insignificant_zeros: true) }
13+
= number_to_human @registrations_week, strip_insignificant_zeros: true
1214
.dashboard__counters__label= t 'admin.dashboard.week_users_new'
1315
%div
1416
%div
15-
.dashboard__counters__num= number_to_human @logins_week, strip_insignificant_zeros: true
17+
.dashboard__counters__num{ title: number_with_delimiter(@logins_week, strip_insignificant_zeros: true) }
18+
= number_to_human @logins_week, strip_insignificant_zeros: true
1619
.dashboard__counters__label= t 'admin.dashboard.week_users_active'
1720
%div
1821
= link_to admin_pending_accounts_path do
19-
.dashboard__counters__num= number_to_human @pending_users_count, strip_insignificant_zeros: true
22+
.dashboard__counters__num{ title: number_with_delimiter(@pending_users_count, strip_insignificant_zeros: true) }
23+
= number_to_human @pending_users_count, strip_insignificant_zeros: true
2024
.dashboard__counters__label= t 'admin.dashboard.pending_users'
2125
%div
2226
= link_to admin_reports_url do
23-
.dashboard__counters__num= number_to_human @reports_count, strip_insignificant_zeros: true
27+
.dashboard__counters__num{ title: number_with_delimiter(@reports_count, strip_insignificant_zeros: true) }
28+
= number_to_human @reports_count, strip_insignificant_zeros: true
2429
.dashboard__counters__label= t 'admin.dashboard.open_reports'
2530
%div
2631
= link_to admin_tags_path(pending_review: '1') do
27-
.dashboard__counters__num= number_to_human @pending_tags_count, strip_insignificant_zeros: true
32+
.dashboard__counters__num{ title: number_with_delimiter(@pending_tags_count, strip_insignificant_zeros: true) }
33+
= number_to_human @pending_tags_count, strip_insignificant_zeros: true
2834
.dashboard__counters__label= t 'admin.dashboard.pending_tags'
2935
%div
3036
%div
31-
.dashboard__counters__num= number_to_human @interactions_week, strip_insignificant_zeros: true
37+
.dashboard__counters__num{ title: number_with_delimiter(@interactions_week, strip_insignificant_zeros: true) }
38+
= number_to_human @interactions_week, strip_insignificant_zeros: true
3239
.dashboard__counters__label= t 'admin.dashboard.week_interactions'
3340
%div
3441
= link_to sidekiq_url do
35-
.dashboard__counters__num= number_to_human @queue_backlog, strip_insignificant_zeros: true
42+
.dashboard__counters__num{ title: number_with_delimiter(@queue_backlog, strip_insignificant_zeros: true) }
43+
= number_to_human @queue_backlog, strip_insignificant_zeros: true
3644
.dashboard__counters__label= t 'admin.dashboard.backlog'
3745

3846
.dashboard__widgets

0 commit comments

Comments
 (0)