mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Tidy up navigation code
- use SASS variables for colours and spacing - make navigation an include not a macro (because it doesn’t take any parameters)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
{% macro main_nav() %}
|
||||
<nav id="navigation">
|
||||
<nav class="navigation">
|
||||
<h3><a href="{{ url_for('.dashboard') }}">Service name</a></h3>
|
||||
<ul>
|
||||
<li><a href="{{ url_for('.sendsms') }}">Send text messages</a></li>
|
||||
@@ -16,5 +15,4 @@
|
||||
<ul>
|
||||
<li><a href="/user-profile">Your details</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
{% endmacro %}
|
||||
</nav>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
{% block fullwidth_content %}
|
||||
<div class="grid-row">
|
||||
<div class="column-one-quarter">
|
||||
{{ main_nav() }}
|
||||
{% include "main_nav.html" %}
|
||||
</div>
|
||||
<div class="column-three-quarters">
|
||||
{% block maincolumn_content %}{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user