소스 검색

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