Merge pull request #719 from alphagov/dashboard-link

Add a ‘dashboard’ link to the navigation
This commit is contained in:
Chris Hill-Scott
2016-06-22 14:12:27 +01:00
committed by GitHub
2 changed files with 7 additions and 11 deletions

View File

@@ -1,21 +1,16 @@
.navigation {
padding: $gutter-two-thirds $gutter-half 0 0;
padding: 0 $gutter 0 0;
ul,
h2 {
li {
@include core-19;
margin: 10px 20px 15px 0;
margin: 10px 0 0 0;
list-style-type: none;
}
h2 {
font-weight: bold;
margin-bottom: 10px;
}
li {
margin: 10px 0 0 0;
@include bold-19;
margin: $gutter 0 0 0;
}
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>