Add model section to template and add API link to sidenav

This commit is contained in:
Patrick Jentsch 2021-11-15 14:54:08 +01:00
parent 70d541690f
commit c1436c2a5d
2 changed files with 4 additions and 1 deletions

View File

@ -25,6 +25,7 @@
{% if current_user.is_administrator() %} {% if current_user.is_administrator() %}
<li><div class="divider"></div></li> <li><div class="divider"></div></li>
<li><a class="subheader">Administration</a></li> <li><a class="subheader">Administration</a></li>
<li><a href="{{ url_for('admin.index') }}"><i class="material-icons">build</i>Administration</a></li> <li><a href="{{ url_for('admin.index') }}"><i class="material-icons">admin_panel_settings</i>Administration</a></li>
<li><a href="{{ url_for('api.doc') }}"><i class="material-icons">api</i>API</a></li>
{% endif %} {% endif %}
</ul> </ul>

View File

@ -32,11 +32,13 @@
{% block main_attribs %} class="background-color"{% endblock main_attribs %} {% block main_attribs %} class="background-color"{% endblock main_attribs %}
{% block main %} {% block main %}
{% block page_content %}{% endblock page_content %} {% block page_content %}{% endblock page_content %}
{% block modals %}
<div id="modals"> <div id="modals">
{% if current_user.is_authenticated %} {% if current_user.is_authenticated %}
{% include "_roadmap.html.j2" %} {% include "_roadmap.html.j2" %}
{% endif %} {% endif %}
</div> </div>
{% endblock modals %}
{% endblock main %} {% endblock main %}
{% block footer_attribs %} class="page-footer primary-variant-color"{% endblock footer_attribs %} {% block footer_attribs %} class="page-footer primary-variant-color"{% endblock footer_attribs %}