mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-25 08:44:23 -04:00
Add a ‘dashboard’ link to the navigation
It’s been unclear that: - the dashboard exists - that you click the name of the service to get back to it So this commit: - takes the link off the service name - adds a link labelled ‘Dashboard’ to the navigation
This commit is contained in:
@@ -2,20 +2,15 @@
|
|||||||
|
|
||||||
padding: $gutter-two-thirds $gutter-half 0 0;
|
padding: $gutter-two-thirds $gutter-half 0 0;
|
||||||
|
|
||||||
ul,
|
h2,
|
||||||
h2 {
|
li {
|
||||||
@include core-19;
|
@include core-19;
|
||||||
margin: 10px 20px 15px 0;
|
margin: 10px 20px 0 0;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
font-weight: bold;
|
@include bold-19;
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
li {
|
|
||||||
margin: 10px 0 0 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|||||||
@@ -46,9 +46,10 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<nav class="navigation">
|
<nav class="navigation">
|
||||||
<h2 class="navigation-service-name">
|
<h2 class="navigation-service-name">
|
||||||
<a href="{{ url_for('.service_dashboard', service_id=current_service.id) }}">{{ current_service.name }}</a>
|
{{ current_service.name }}
|
||||||
</h2>
|
</h2>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li><a href="{{ url_for('.service_dashboard', service_id=current_service.id) }}">Dashboard</a></li>
|
||||||
{% if current_user.has_permissions(['view_activity', 'manage_templates', 'manage_api_keys'], admin_override=True, any_=True) %}
|
{% 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='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>
|
<li><a href="{{ url_for('.choose_template', service_id=current_service.id, template_type='sms') }}">Text message templates</a></li>
|
||||||
|
|||||||
Reference in New Issue
Block a user