Quellcode durchsuchen

Add nav to public vote pages

JoostSijm vor 6 Jahren
Ursprung
Commit
b0b5255ace

+ 7 - 0
app/modules/vote/templates/vote/index.j2

@@ -2,6 +2,13 @@
 {% block head %}
 <title>Votes - Democratic Assembly</title>
 {% endblock %}
+{% block nav %}
+<ul class="navbar-nav mr-auto">
+    <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Votes">
+        <a class="nav-link" href="{{ url_for('vote.index') }}">Votes</a>
+    </li>
+</ul>
+{% endblock %}
 {% block content %}
 {% with messages = get_flashed_messages(with_categories=true) %}
 {% if messages %}

+ 7 - 0
app/modules/vote/templates/vote/view.j2

@@ -2,6 +2,13 @@
 {% block head %}
 <title>{{ ballot.name }} - Democratic Assembly</title>
 {% endblock %}
+{% block nav %}
+<ul class="navbar-nav mr-auto">
+    <li class="nav-item" data-toggle="tooltip" data-placement="right" title="Votes">
+        <a class="nav-link" href="{{ url_for('vote.index') }}">Votes</a>
+    </li>
+</ul>
+{% endblock %}
 {% block content %}
 {% with messages = get_flashed_messages(with_categories=true) %}
 {% if messages %}