mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-09 10:54:11 -04:00
Takes the number of emails and SMS fragments sent from: https://github.com/alphagov/notifications-api/pull/273 Using these numbers it’s possible to show: - how much of your allowance is left - or how much you have spent For now the allowance and rates are hard coded. Only for users that have manage service.
28 lines
814 B
HTML
28 lines
814 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 %}
|
||
|
||
{% include 'views/dashboard/today.html' %}
|
||
|
||
</div>
|
||
|
||
{% endblock %}
|