2018-07-16 09:11:53 +10:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.dashboard.title')
|
|
|
|
|
2021-10-15 05:44:59 +11:00
|
|
|
- content_for :heading_actions do
|
2024-10-01 19:30:21 +10:00
|
|
|
= date_range(@time_period)
|
2021-10-15 05:44:59 +11:00
|
|
|
|
2021-04-03 23:12:30 +11:00
|
|
|
- unless @system_checks.empty?
|
|
|
|
.flash-message-stack
|
|
|
|
- @system_checks.each do |message|
|
2023-03-17 08:47:01 +11:00
|
|
|
.flash-message{ class: message.critical ? 'alert' : 'warning' }
|
2021-05-06 22:22:54 +10:00
|
|
|
= t("admin.system_checks.#{message.key}.message_html", value: message.value ? content_tag(:strong, message.value) : nil)
|
2021-04-03 23:12:30 +11:00
|
|
|
- if message.action
|
|
|
|
= link_to t("admin.system_checks.#{message.key}.action"), message.action
|
|
|
|
|
2021-10-15 05:44:59 +11:00
|
|
|
.dashboard
|
|
|
|
.dashboard__item
|
2024-03-21 00:45:34 +11:00
|
|
|
= react_admin_component :counter,
|
|
|
|
end_at: @time_period.last,
|
|
|
|
href: admin_accounts_path(origin: 'local'),
|
|
|
|
label: t('admin.dashboard.new_users'),
|
|
|
|
measure: 'new_users',
|
|
|
|
start_at: @time_period.first
|
2021-10-15 05:44:59 +11:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-21 00:45:34 +11:00
|
|
|
= react_admin_component :counter,
|
|
|
|
end_at: @time_period.last,
|
|
|
|
href: admin_accounts_path(origin: 'local'),
|
|
|
|
label: t('admin.dashboard.active_users'),
|
|
|
|
measure: 'active_users',
|
|
|
|
start_at: @time_period.first
|
2021-10-15 05:44:59 +11:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-21 00:45:34 +11:00
|
|
|
= react_admin_component :counter,
|
|
|
|
end_at: @time_period.last,
|
|
|
|
label: t('admin.dashboard.interactions'),
|
|
|
|
measure: 'interactions',
|
|
|
|
start_at: @time_period.first
|
2021-10-15 05:44:59 +11:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-21 00:45:34 +11:00
|
|
|
= react_admin_component :counter,
|
|
|
|
end_at: @time_period.last,
|
|
|
|
href: admin_reports_path,
|
|
|
|
label: t('admin.dashboard.opened_reports'),
|
|
|
|
measure: 'opened_reports',
|
|
|
|
start_at: @time_period.first
|
2021-10-15 05:44:59 +11:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-21 00:45:34 +11:00
|
|
|
= react_admin_component :counter,
|
|
|
|
end_at: @time_period.last,
|
|
|
|
href: admin_reports_path(resolved: '1'),
|
|
|
|
label: t('admin.dashboard.resolved_reports'),
|
|
|
|
measure: 'resolved_reports',
|
|
|
|
start_at: @time_period.first
|
2021-10-15 05:44:59 +11:00
|
|
|
|
|
|
|
.dashboard__item
|
|
|
|
= link_to admin_reports_path, class: 'dashboard__quick-access' do
|
2024-09-07 02:52:35 +10:00
|
|
|
%span= t('admin.dashboard.pending_reports_html', count: @pending_reports_count.value)
|
2024-04-24 02:43:49 +10:00
|
|
|
= material_symbol 'chevron_right'
|
2021-10-15 05:44:59 +11:00
|
|
|
|
2021-12-06 07:48:39 +11:00
|
|
|
= link_to admin_accounts_path(status: 'pending'), class: 'dashboard__quick-access' do
|
2024-09-07 02:52:35 +10:00
|
|
|
%span= t('admin.dashboard.pending_users_html', count: @pending_users_count.value)
|
2024-04-24 02:43:49 +10:00
|
|
|
= material_symbol 'chevron_right'
|
2021-10-15 05:44:59 +11:00
|
|
|
|
2021-11-25 23:07:38 +11:00
|
|
|
= link_to admin_trends_tags_path(status: 'pending_review'), class: 'dashboard__quick-access' do
|
2024-09-07 02:52:35 +10:00
|
|
|
%span= t('admin.dashboard.pending_tags_html', count: @pending_tags_count.value)
|
2024-04-24 02:43:49 +10:00
|
|
|
= material_symbol 'chevron_right'
|
2021-10-15 05:44:59 +11:00
|
|
|
|
2022-02-15 07:27:53 +11:00
|
|
|
= link_to admin_disputes_appeals_path(status: 'pending'), class: 'dashboard__quick-access' do
|
2024-09-07 02:52:35 +10:00
|
|
|
%span= t('admin.dashboard.pending_appeals_html', count: @pending_appeals_count.value)
|
2024-04-24 02:43:49 +10:00
|
|
|
= material_symbol 'chevron_right'
|
2021-10-15 05:44:59 +11:00
|
|
|
.dashboard__item
|
2024-03-21 00:45:34 +11:00
|
|
|
= react_admin_component :dimension,
|
|
|
|
dimension: 'sources',
|
|
|
|
end_at: @time_period.last,
|
|
|
|
label: t('admin.dashboard.sources'),
|
|
|
|
limit: 8,
|
|
|
|
start_at: @time_period.first
|
2021-10-15 05:44:59 +11:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-21 00:45:34 +11:00
|
|
|
= react_admin_component :dimension,
|
|
|
|
dimension: 'languages',
|
|
|
|
end_at: @time_period.last,
|
|
|
|
label: t('admin.dashboard.top_languages'),
|
|
|
|
limit: 8,
|
|
|
|
start_at: @time_period.first
|
2021-10-15 05:44:59 +11:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-21 00:45:34 +11:00
|
|
|
= react_admin_component :dimension,
|
|
|
|
dimension: 'servers',
|
|
|
|
end_at: @time_period.last,
|
|
|
|
label: t('admin.dashboard.top_servers'),
|
|
|
|
limit: 8,
|
|
|
|
start_at: @time_period.first
|
2021-10-15 05:44:59 +11:00
|
|
|
|
|
|
|
.dashboard__item.dashboard__item--span-double-column
|
2024-03-21 00:45:34 +11:00
|
|
|
= react_admin_component :retention,
|
|
|
|
end_at: @time_period.last,
|
|
|
|
frequency: 'month',
|
|
|
|
start_at: @time_period.last - 6.months
|
2021-10-15 05:44:59 +11:00
|
|
|
|
|
|
|
.dashboard__item.dashboard__item--span-double-row
|
2024-03-21 00:45:34 +11:00
|
|
|
= react_admin_component :trends,
|
|
|
|
limit: 7
|
2021-10-15 05:44:59 +11:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-21 00:45:34 +11:00
|
|
|
= react_admin_component :dimension,
|
|
|
|
dimension: 'software_versions',
|
|
|
|
end_at: @time_period.last,
|
|
|
|
label: t('admin.dashboard.software'),
|
|
|
|
limit: 4,
|
|
|
|
start_at: @time_period.first
|
2021-10-15 05:44:59 +11:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-21 00:45:34 +11:00
|
|
|
= react_admin_component :dimension,
|
|
|
|
dimension: 'space_usage',
|
|
|
|
end_at: @time_period.last,
|
|
|
|
label: t('admin.dashboard.space'),
|
|
|
|
limit: 3,
|
|
|
|
start_at: @time_period.first
|