mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
We have lots of keylines in our pages, eg tables, email message previews This makes the pages look quite cluttered, especially because the keylines don’t always align. I think it looks much cleaner without the keylines in the nav, and we have few enough nav items that we don’t need to chunk them up.
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, page=1) }}">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='sms') }}">Text message templates</a></li>
|
|
<li><a href="{{ url_for('.choose_template', service_id=current_service.id, template_type='email') }}">Email 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>
|