瀏覽代碼

Add nav to public vote pages

JoostSijm 6 年之前
父節點
當前提交
b0b5255ace
共有 2 個文件被更改,包括 14 次插入0 次删除
  1. 7 0
      app/modules/vote/templates/vote/index.j2
  2. 7 0
      app/modules/vote/templates/vote/view.j2

+ 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 %}