Skip to content
Snippets Groups Projects
Unverified Commit 057cff75 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Make menu generation work.

parent 5a92ba9e
No related branches found
No related tags found
No related merge requests found
{% extends "bootstrap3/bootstrap3.html" %}
{% load staticfiles i18n %}
{% load menu staticfiles i18n %}
{% load menu %}
{% block bootstrap3_title %}BiscuIT School Information System{% endblock %}
......@@ -22,13 +23,8 @@
</div>
<div class="collapse navbar-collapse" id="navbar-main">
<ul class="nav navbar-nav navbar-right">
{% if user.is_authenticated %}
<li>
<a href="{% url "index" %}">Startseite</a>
</li>
{% endif %}
</ul>
{% generate_menu %}
{% with menu=menus.exnomo %}{% include "core/menu.html" %}{% endwith %}
</div>
</div>
</nav>
......
<ul class="nav navbar-nav navbar-right">
{% for item in menu %}
{% if item.separator %}<li role="separator" class="divider"></li>{% endif %}
<li><a href="{{ item.url }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
......@@ -15,4 +15,4 @@ for app_config in apps.app_configs.values():
if not app_config.name.startswith('biscuit.apps.'):
continue
urlpatterns.append(path('%s/' % app_config.label, include('%s.urls' % app_config.name)))
urlpatterns.append(path('app/%s/' % app_config.label, include('%s.urls' % app_config.name)))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment