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:
Chris Hill-Scott
2016-06-22 09:28:40 +01:00
parent d4103767d2
commit 9abd19e092
2 changed files with 6 additions and 10 deletions

View File

@@ -2,20 +2,15 @@
padding: $gutter-two-thirds $gutter-half 0 0;
ul,
h2 {
h2,
li {
@include core-19;
margin: 10px 20px 15px 0;
margin: 10px 20px 0 0;
list-style-type: none;
}
h2 {
font-weight: bold;
margin-bottom: 10px;
}
li {
margin: 10px 0 0 0;
@include bold-19;
}
a {

View File

@@ -46,9 +46,10 @@
{% else %}
<nav class="navigation">
<h2 class="navigation-service-name">
<a href="{{ url_for('.service_dashboard', service_id=current_service.id) }}">{{ current_service.name }}</a>
{{ current_service.name }}
</h2>
<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) %}
<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>