2016-03-17 11:45:48 +00:00
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
|
|
2016-06-28 08:59:08 +01:00
|
|
|
{% from "components/big-number.html" import big_number, big_number_with_status %}
|
|
|
|
|
{% from "components/show-more.html" import show_more %}
|
|
|
|
|
{% from "components/message-count-label.html" import message_count_label %}
|
|
|
|
|
{% 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
|
|
|
|
2016-04-20 15:37:17 +01:00
|
|
|
<div class="dashboard">
|
|
|
|
|
|
2016-05-11 15:05:40 +01:00
|
|
|
<h1 class="visuallyhidden">Dashboard</h1>
|
2018-03-12 15:49:52 +00:00
|
|
|
{% if current_user.has_permissions('manage_templates') and not templates %}
|
|
|
|
|
{% include 'views/dashboard/write-first-messages.html' %}
|
2016-04-01 10:54:55 +01:00
|
|
|
{% endif %}
|
2016-03-17 11:45:48 +00:00
|
|
|
|
2016-08-09 10:39:57 +01:00
|
|
|
{{ ajax_block(partials, updates_url, 'upcoming') }}
|
|
|
|
|
|
2016-05-11 15:05:40 +01:00
|
|
|
<h2 class="heading-medium">
|
2016-05-03 13:25:22 +01:00
|
|
|
In the last 7 days
|
2016-05-11 15:05:40 +01:00
|
|
|
</h2>
|
2016-06-28 08:59:08 +01:00
|
|
|
|
2017-05-22 17:02:03 +01:00
|
|
|
{{ ajax_block(partials, updates_url, 'inbox') }}
|
|
|
|
|
|
2016-06-28 11:23:43 +01:00
|
|
|
{{ ajax_block(partials, updates_url, 'totals') }}
|
2016-06-28 09:07:04 +01:00
|
|
|
{{ show_more(
|
2017-01-30 17:27:09 +00:00
|
|
|
url_for('.monthly', service_id=current_service.id),
|
2017-03-06 11:27:51 +00:00
|
|
|
'See messages sent per month'
|
2016-06-28 09:07:04 +01:00
|
|
|
) }}
|
2016-06-28 08:59:08 +01:00
|
|
|
|
2016-06-28 11:23:43 +01:00
|
|
|
{% if partials['has_template_statistics'] %}
|
|
|
|
|
{{ ajax_block(partials, updates_url, 'template-statistics') }}
|
2016-06-28 09:07:04 +01:00
|
|
|
{{ show_more(
|
2017-11-24 14:31:41 +00:00
|
|
|
url_for('.template_usage', service_id=current_service.id),
|
2017-03-06 11:27:51 +00:00
|
|
|
'See templates used by month'
|
2016-06-28 09:07:04 +01:00
|
|
|
) }}
|
|
|
|
|
{% endif %}
|
2016-06-28 08:59:08 +01:00
|
|
|
|
2016-06-28 11:23:43 +01:00
|
|
|
{% if partials['has_jobs'] %}
|
|
|
|
|
{{ ajax_block(partials, updates_url, 'jobs') }}
|
2016-06-28 09:07:04 +01:00
|
|
|
{{ show_more(
|
|
|
|
|
url_for('.view_jobs', service_id=current_service.id),
|
|
|
|
|
'See all uploaded files'
|
|
|
|
|
) }}
|
|
|
|
|
{% endif %}
|
2016-06-28 08:59:08 +01:00
|
|
|
|
2016-04-20 15:37:17 +01:00
|
|
|
</div>
|
|
|
|
|
|
2016-03-17 11:45:48 +00:00
|
|
|
{% endblock %}
|