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 %}
|
2016-04-05 11:40:13 +01:00
|
|
|
|
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>
|
2018-11-05 15:26:59 +00:00
|
|
|
{% if current_user.has_permissions('manage_templates') and not current_service.all_templates %}
|
2018-03-12 15:49:52 +00:00
|
|
|
{% include 'views/dashboard/write-first-messages.html' %}
|
2016-04-01 10:54:55 +01:00
|
|
|
{% endif %}
|
2016-03-17 11:45:48 +00:00
|
|
|
|
2020-04-08 17:55:53 +01:00
|
|
|
{{ ajax_block(partials, updates_url, 'upcoming') }}
|
2016-08-09 10:39:57 +01:00
|
|
|
|
2023-10-31 14:22:00 -04:00
|
|
|
<h2 class="font-body-xl margin-0">
|
|
|
|
|
Messages sent
|
2016-05-11 15:05:40 +01:00
|
|
|
</h2>
|
2023-10-31 14:22:00 -04:00
|
|
|
<p class="margin-top-0">In the last seven days</p>
|
2016-06-28 08:59:08 +01:00
|
|
|
|
2020-04-08 17:55:53 +01:00
|
|
|
{{ ajax_block(partials, updates_url, 'inbox') }}
|
2017-05-22 17:02:03 +01:00
|
|
|
|
2020-04-08 17:55:53 +01:00
|
|
|
{{ ajax_block(partials, updates_url, 'totals') }}
|
2016-06-28 08:59:08 +01:00
|
|
|
|
2020-04-08 17:55:53 +01:00
|
|
|
{{ ajax_block(partials, updates_url, 'template-statistics') }}
|
2016-06-28 09:07:04 +01:00
|
|
|
|
2023-11-01 10:38:50 -04:00
|
|
|
<h2 class="margin-top-4 margin-bottom-1">Usage</h2>
|
2023-10-31 14:22:00 -04:00
|
|
|
<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">
|
2023-10-31 14:22:00 -04:00
|
|
|
<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>
|
2023-10-31 14:22:00 -04:00
|
|
|
<td>
|
|
|
|
|
{{ daily_global_messages_remaining }}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
2023-10-31 12:03:21 -04:00
|
|
|
|
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>
|
2020-04-08 17:55:53 +01:00
|
|
|
{{ ajax_block(partials, updates_url, 'usage') }}
|
2019-10-25 13:27:46 +01:00
|
|
|
{{ show_more(
|
|
|
|
|
url_for(".usage", service_id=current_service['id']),
|
2023-10-31 14:22:00 -04:00
|
|
|
'See all usage'
|
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 %}
|