mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Compare commits
2 commits
81d4135b23
...
c3d51aaf64
Author | SHA1 | Date | |
---|---|---|---|
|
c3d51aaf64 | ||
|
54e02658cb |
2 changed files with 8 additions and 8 deletions
|
@ -7,12 +7,12 @@ module Admin
|
|||
def index
|
||||
authorize :dashboard, :index?
|
||||
|
||||
@pending_appeals_count = Appeal.pending.async_count
|
||||
@pending_reports_count = Report.unresolved.async_count
|
||||
@pending_tags_count = Tag.pending_review.async_count
|
||||
@pending_users_count = User.pending.async_count
|
||||
@system_checks = Admin::SystemCheck.perform(current_user)
|
||||
@time_period = (29.days.ago.to_date...Time.now.utc.to_date)
|
||||
@pending_users_count = User.pending.count
|
||||
@pending_reports_count = Report.unresolved.count
|
||||
@pending_tags_count = Tag.pending_review.count
|
||||
@pending_appeals_count = Appeal.pending.count
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -56,19 +56,19 @@
|
|||
|
||||
.dashboard__item
|
||||
= link_to admin_reports_path, class: 'dashboard__quick-access' do
|
||||
%span= t('admin.dashboard.pending_reports_html', count: @pending_reports_count)
|
||||
%span= t('admin.dashboard.pending_reports_html', count: @pending_reports_count.value)
|
||||
= material_symbol 'chevron_right'
|
||||
|
||||
= link_to admin_accounts_path(status: 'pending'), class: 'dashboard__quick-access' do
|
||||
%span= t('admin.dashboard.pending_users_html', count: @pending_users_count)
|
||||
%span= t('admin.dashboard.pending_users_html', count: @pending_users_count.value)
|
||||
= material_symbol 'chevron_right'
|
||||
|
||||
= link_to admin_trends_tags_path(status: 'pending_review'), class: 'dashboard__quick-access' do
|
||||
%span= t('admin.dashboard.pending_tags_html', count: @pending_tags_count)
|
||||
%span= t('admin.dashboard.pending_tags_html', count: @pending_tags_count.value)
|
||||
= material_symbol 'chevron_right'
|
||||
|
||||
= link_to admin_disputes_appeals_path(status: 'pending'), class: 'dashboard__quick-access' do
|
||||
%span= t('admin.dashboard.pending_appeals_html', count: @pending_appeals_count)
|
||||
%span= t('admin.dashboard.pending_appeals_html', count: @pending_appeals_count.value)
|
||||
= material_symbol 'chevron_right'
|
||||
.dashboard__item
|
||||
= react_admin_component :dimension,
|
||||
|
|
Loading…
Reference in a new issue