mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-18 13:39:57 -04:00
Implements https://github.com/alphagov/notifications-api/pull/286 Will always show weeks as Monday to Sunday.
31 lines
881 B
HTML
31 lines
881 B
HTML
{% extends "withnav_template.html" %}
|
||
|
||
{% block page_title %}
|
||
{{ current_service.name }} – GOV.UK Notify
|
||
{% endblock %}
|
||
|
||
{% block maincolumn_content %}
|
||
|
||
<div class="dashboard">
|
||
|
||
{% if not templates and current_user.has_permissions(['send_texts', 'send_emails', 'send_letters'], any_=True) %}
|
||
{% include 'views/dashboard/get-started.html' %}
|
||
{% elif current_user.has_permissions([
|
||
'manage_templates', 'manage_api_keys', 'manage_users', 'manage_settings
|
||
'], any_=True, admin_override=True) %}
|
||
{% if current_service.restricted %}
|
||
{% include 'views/dashboard/trial-mode-banner.html' %}
|
||
{% endif %}
|
||
{% else %}
|
||
{% include 'views/dashboard/no-permissions-banner.html' %}
|
||
{% endif %}
|
||
|
||
<h1 class="heading-medium">
|
||
In the last 7 days
|
||
</h1>
|
||
{% include 'views/dashboard/today.html' %}
|
||
|
||
</div>
|
||
|
||
{% endblock %}
|