mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-18 05:30:21 -04:00
The main task that we think ‘caseworker’ users do is send one off messages. So this commit: - makes sure users who don’t have the `view_activity` permission (ie not ‘admin’ users) can still send messages - adds navigation so that these users have a place to go from which to start the process of sending a one off message
27 lines
1.5 KiB
HTML
27 lines
1.5 KiB
HTML
{% if help %}
|
|
{% include 'partials/tour.html' %}
|
|
{% elif current_user.has_permissions('view_activity') %}
|
|
<nav class="navigation">
|
|
<ul>
|
|
<li><a href="{{ url_for('.service_dashboard', service_id=current_service.id) }}" {{ main_navigation.is_selected('dashboard') }}>Dashboard</a></li>
|
|
<li><a href="{{ url_for('.choose_template', service_id=current_service.id) }}" {{ main_navigation.is_selected('templates') }}>Templates</a></li>
|
|
<li><a href="{{ url_for('.manage_users', service_id=current_service.id) }}" {{ main_navigation.is_selected('team-members') }}>Team members</a></li>
|
|
{% if current_user.has_permissions('manage_service') %}
|
|
<li><a href="{{ url_for('.usage', service_id=current_service.id) }}" {{ main_navigation.is_selected('usage') }}>Usage</a></li>
|
|
{% endif %}
|
|
{% if current_user.has_permissions('manage_api_keys', 'manage_service') %}
|
|
<li><a href="{{ url_for('.service_settings', service_id=current_service.id) }}" {{ main_navigation.is_selected('settings') }}>Settings</a></li>
|
|
{% endif %}
|
|
{% if current_user.has_permissions('manage_api_keys') %}
|
|
<li><a href="{{ url_for('.api_integration', service_id=current_service.id) }}" {{ main_navigation.is_selected('api-integration') }}>API integration</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</nav>
|
|
{% else %}
|
|
<nav class="navigation">
|
|
<ul>
|
|
<li><a href="{{ url_for('.choose_template', service_id=current_service.id) }}" {{ casework_navigation.is_selected('send-one-off') }}>Send a message</a></li>
|
|
</ul>
|
|
</nav>
|
|
{% endif %}
|