mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-08 11:40:25 +00:00
This commit is big because anything small breaks the code. - Django dispatcher is based on regular expressions and does not need a tree structure - Reduces a lot of unnecessary dependencies among modules - Use Django sessions middlewear instead of CherryPy sessions - Introduce dependency based modules instead of numeric load order - Remove PagePlugin and simply use Django views - Eliminate page rendering wrappers in favor of Django context processors - Use custom auth for now until replaced by Django auth middlewear - Use Django templated 404 and 500 error pages
28 lines
975 B
HTML
28 lines
975 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block add_nav_and_login %}
|
|
<div class="nav-collapse">
|
|
|
|
<ul class="nav">
|
|
{% for item in main_menu.items %}
|
|
{% if item.url in active_menu_urls %}
|
|
<li class="active">
|
|
<a href="{{ item.url }}" class="active">
|
|
{% else %}
|
|
<li>
|
|
<a href="{{ item.url }}">
|
|
{% endif %}
|
|
<span class="{{ item.icon }} icon-white nav-icon"></span>
|
|
{{ item.label }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
{% if username %}
|
|
<p class="navbar-text pull-right"><i class="icon-user icon-white nav-icon"></i>Logged in as <a href="{{ username }}">{{ username }}</a>. <a href="{{ basehref }}/auth/logout" title="Log out">Log out</a>.</p>
|
|
{% else %}
|
|
<p class="navbar-text pull-right">Not logged in. <i class="icon-user icon-white nav-icon"></i><a href="{{ basehref }}/auth/login" title="Log in">Log in</a>.</p>
|
|
{% endif %}
|
|
{% endblock %}
|