Files
notifications-admin/app/templates/views/dashboard/dashboard.html
T

44 lines
1.2 KiB
HTML
Raw Normal View History

2016-03-17 11:45:48 +00:00
{% extends "withnav_template.html" %}
2016-06-28 08:59:08 +01:00
{% from "components/show-more.html" import show_more %}
{% from "components/table.html" import list_table, field, right_aligned_field_heading, hidden_field_heading %}
2016-06-28 09:21:46 +01:00
{% from "components/ajax-block.html" import ajax_block %}
2016-06-28 08:59:08 +01:00
2017-02-13 10:45:15 +00:00
{% block service_page_title %}
Dashboard
2016-03-17 11:45:48 +00:00
{% endblock %}
{% block maincolumn_content %}
2023-06-08 13:12:00 -04:00
<div class="dashboard margin-bottom-8">
2016-04-20 15:37:17 +01:00
2023-06-08 13:12:00 -04:00
<h1 class="usa-sr-only">Dashboard</h1>
{% if current_user.has_permissions('manage_templates') and not current_service.all_templates %}
{% include 'views/dashboard/write-first-messages.html' %}
{% endif %}
2016-03-17 11:45:48 +00:00
{{ ajax_block(partials, updates_url, 'upcoming') }}
2016-08-09 10:39:57 +01:00
2023-06-08 13:12:00 -04:00
<h2 class="font-body-lg margin-top-0">
In the last seven days
</h2>
2016-06-28 08:59:08 +01:00
{{ ajax_block(partials, updates_url, 'inbox') }}
2017-05-22 17:02:03 +01:00
{{ ajax_block(partials, updates_url, 'totals') }}
2016-06-28 08:59:08 +01:00
{{ ajax_block(partials, updates_url, 'template-statistics') }}
2019-10-25 13:27:46 +01:00
{% if current_user.has_permissions('manage_service') %}
2023-06-08 13:12:00 -04:00
<h2 class='font-body-lg'>This year</h2>
{{ ajax_block(partials, updates_url, 'usage') }}
2019-10-25 13:27:46 +01:00
{{ show_more(
url_for(".usage", service_id=current_service['id']),
'See usage'
) }}
{% endif %}
2016-04-20 15:37:17 +01:00
</div>
2016-03-17 11:45:48 +00:00
{% endblock %}