2016-03-17 11:45:48 +00:00
|
|
|
|
{% extends "withnav_template.html" %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block page_title %}
|
2016-04-04 16:53:52 +01:00
|
|
|
|
{{ current_service.name }} – GOV.UK Notify
|
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>
|
|
|
|
|
|
|
2016-07-01 11:07:44 +01:00
|
|
|
|
{% if current_user.has_permissions(['manage_templates'], admin_override=True) %}
|
|
|
|
|
|
{% if not templates %}
|
|
|
|
|
|
{% include 'views/dashboard/write-first-messages.html' %}
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% elif not current_user.has_permissions(['send_texts', 'send_emails', 'send_letters'], any_=True) %}
|
2016-04-07 15:30:52 +01:00
|
|
|
|
{% include 'views/dashboard/no-permissions-banner.html' %}
|
2016-04-01 10:54:55 +01:00
|
|
|
|
{% endif %}
|
2016-03-17 11:45:48 +00:00
|
|
|
|
|
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-04-27 09:28:42 +01:00
|
|
|
|
{% include 'views/dashboard/today.html' %}
|
2016-03-17 11:45:48 +00:00
|
|
|
|
|
2016-04-20 15:37:17 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2016-03-17 11:45:48 +00:00
|
|
|
|
{% endblock %}
|