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

66 lines
1.9 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/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
<h2 class="font-body-xl margin-0">
Messages sent
</h2>
<p class="margin-top-0">In the last seven days</p>
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') }}
2023-11-01 10:38:50 -04:00
<h2 class="margin-top-4 margin-bottom-1">Usage</h2>
<h3 class="margin-bottom-0">Daily</h3>
<p class="margin-0">Across all services</p>
2023-11-01 10:38:50 -04:00
<table class="usa-table usa-table--borderless margin-top-1 margin-bottom-5">
<caption class="usa-sr-only">
Daily
</caption>
<thead>
<tr>
<th scope="col">Usage</th>
<th scope="col">Remaining</th>
</tr>
</thead>
<tbody>
<tr>
2023-11-16 12:02:59 -05:00
<td>{{ global_message_limit - daily_global_messages_remaining }}</td>
<td>
{{ daily_global_messages_remaining }}
</td>
</tr>
</tbody>
</table>
2019-10-25 13:27:46 +01:00
{% if current_user.has_permissions('manage_service') %}
2023-11-16 12:02:59 -05:00
<h3 class='margin-bottom-0' id="current-year"></h3>
{{ ajax_block(partials, updates_url, 'usage') }}
2023-12-18 21:56:40 -05:00
<a
href="{{ url_for('.usage', service_id=current_service['id']) }}"
class="usa-link show-more"
><span>See all usage</span></a>
2019-10-25 13:27:46 +01:00
{% endif %}
2016-04-20 15:37:17 +01:00
</div>
2016-03-17 11:45:48 +00:00
{% endblock %}