mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-12 05:10:45 -04:00
Elsewhere (eg the dashboard, the activity page) we have email first. Emails are also anticipated to be slightly more popular in terms of the number of services sending them. Therefore it makes sense to have emails first in the main navigation.
27 lines
1.6 KiB
HTML
27 lines
1.6 KiB
HTML
<nav class="navigation">
|
|
<h2 class="navigation-service-name">
|
|
<a href="{{ url_for('.service_dashboard', service_id=current_service.id) }}">{{ current_service.name }}</a>
|
|
</h2>
|
|
<ul>
|
|
{% if current_user.has_permissions(['view_activity'], admin_override=True) %}
|
|
<li><a href="{{ url_for('.view_notifications', service_id=current_service.id, status='delivered,failed') }}">Activity</a></li>
|
|
{% endif %}
|
|
{% if current_user.has_permissions(['view_activity', 'manage_templates', 'manage_api_keys'], admin_override=True, any_=True) %}
|
|
<li><a href="{{ url_for('.choose_template', service_id=current_service.id, template_type='email') }}">Email templates</a></li>
|
|
<li><a href="{{ url_for('.choose_template', service_id=current_service.id, template_type='sms') }}">Text message templates</a></li>
|
|
{% endif %}
|
|
{% if current_user.has_permissions(['manage_users', 'manage_settings'], admin_override=True) %}
|
|
<li><a href="{{ url_for('.manage_users', service_id=current_service.id) }}">Team members</a></li>
|
|
<li><a href="{{ url_for('.service_settings', service_id=current_service.id) }}">Settings</a></li>
|
|
{% elif current_user.has_permissions(['view_activity']) %}
|
|
<li><a href="{{ url_for('.manage_users', service_id=current_service.id) }}">Team members</a></li>
|
|
{% endif %}
|
|
{% if current_user.has_permissions(['manage_api_keys']) %}
|
|
<li><a href="{{ url_for('.api_keys', service_id=current_service.id) }}">API keys</a></li>
|
|
{% endif %}
|
|
{% if current_user.has_permissions(admin_override=True) %}
|
|
<li><a href="{{ url_for('.show_all_services') }}"> List all services </a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</nav>
|