2018-07-15 23:11:53 +00:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.dashboard.title')
|
|
|
|
|
2021-10-14 18:44:59 +00:00
|
|
|
- content_for :heading_actions do
|
2024-10-01 09:30:21 +00:00
|
|
|
= date_range(@time_period)
|
2021-10-14 18:44:59 +00:00
|
|
|
|
2021-04-03 12:12:30 +00:00
|
|
|
- unless @system_checks.empty?
|
|
|
|
.flash-message-stack
|
|
|
|
- @system_checks.each do |message|
|
2023-03-16 21:47:01 +00:00
|
|
|
.flash-message{ class: message.critical ? 'alert' : 'warning' }
|
2021-05-06 12:22:54 +00:00
|
|
|
= t("admin.system_checks.#{message.key}.message_html", value: message.value ? content_tag(:strong, message.value) : nil)
|
2021-04-03 12:12:30 +00:00
|
|
|
- if message.action
|
|
|
|
= link_to t("admin.system_checks.#{message.key}.action"), message.action
|
|
|
|
|
2021-10-14 18:44:59 +00:00
|
|
|
.dashboard
|
|
|
|
.dashboard__item
|
2024-03-20 13:45:34 +00: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-14 18:44:59 +00:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-20 13:45:34 +00: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-14 18:44:59 +00:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-20 13:45:34 +00:00
|
|
|
= react_admin_component :counter,
|
|
|
|
end_at: @time_period.last,
|
|
|
|
label: t('admin.dashboard.interactions'),
|
|
|
|
measure: 'interactions',
|
|
|
|
start_at: @time_period.first
|
2021-10-14 18:44:59 +00:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-20 13:45:34 +00: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-14 18:44:59 +00:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-20 13:45:34 +00: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-14 18:44:59 +00:00
|
|
|
|
|
|
|
.dashboard__item
|
|
|
|
= link_to admin_reports_path, class: 'dashboard__quick-access' do
|
2024-09-06 16:52:35 +00:00
|
|
|
%span= t('admin.dashboard.pending_reports_html', count: @pending_reports_count.value)
|
2024-04-23 16:43:49 +00:00
|
|
|
= material_symbol 'chevron_right'
|
2021-10-14 18:44:59 +00:00
|
|
|
|
2021-12-05 20:48:39 +00:00
|
|
|
= link_to admin_accounts_path(status: 'pending'), class: 'dashboard__quick-access' do
|
2024-09-06 16:52:35 +00:00
|
|
|
%span= t('admin.dashboard.pending_users_html', count: @pending_users_count.value)
|
2024-04-23 16:43:49 +00:00
|
|
|
= material_symbol 'chevron_right'
|
2021-10-14 18:44:59 +00:00
|
|
|
|
2021-11-25 12:07:38 +00:00
|
|
|
= link_to admin_trends_tags_path(status: 'pending_review'), class: 'dashboard__quick-access' do
|
2024-09-06 16:52:35 +00:00
|
|
|
%span= t('admin.dashboard.pending_tags_html', count: @pending_tags_count.value)
|
2024-04-23 16:43:49 +00:00
|
|
|
= material_symbol 'chevron_right'
|
2021-10-14 18:44:59 +00:00
|
|
|
|
2022-02-14 20:27:53 +00:00
|
|
|
= link_to admin_disputes_appeals_path(status: 'pending'), class: 'dashboard__quick-access' do
|
2024-09-06 16:52:35 +00:00
|
|
|
%span= t('admin.dashboard.pending_appeals_html', count: @pending_appeals_count.value)
|
2024-04-23 16:43:49 +00:00
|
|
|
= material_symbol 'chevron_right'
|
2021-10-14 18:44:59 +00:00
|
|
|
.dashboard__item
|
2024-03-20 13:45:34 +00: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-14 18:44:59 +00:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-20 13:45:34 +00: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-14 18:44:59 +00:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-20 13:45:34 +00: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-14 18:44:59 +00:00
|
|
|
|
|
|
|
.dashboard__item.dashboard__item--span-double-column
|
2024-03-20 13:45:34 +00:00
|
|
|
= react_admin_component :retention,
|
|
|
|
end_at: @time_period.last,
|
|
|
|
frequency: 'month',
|
|
|
|
start_at: @time_period.last - 6.months
|
2021-10-14 18:44:59 +00:00
|
|
|
|
|
|
|
.dashboard__item.dashboard__item--span-double-row
|
2024-03-20 13:45:34 +00:00
|
|
|
= react_admin_component :trends,
|
|
|
|
limit: 7
|
2021-10-14 18:44:59 +00:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-20 13:45:34 +00: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-14 18:44:59 +00:00
|
|
|
|
|
|
|
.dashboard__item
|
2024-03-20 13:45:34 +00: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
|