mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-08 09:41:35 +00:00
Merge login_nav template with base template
This commit is contained in:
parent
f4fe85ae28
commit
fb2f91d4b4
1
LICENSES
1
LICENSES
@ -68,7 +68,6 @@ specified and linked otherwise.
|
||||
- sudoers/plinth :: -
|
||||
- templates/base.html :: [[file:templates/base.tmpl::the%20<a%20href%3D"http:/www.gnu.org/licenses/agpl.html"%20target%3D"_blank">GNU%20Affero%20General%20Public][GNU Affero General Public License, Version 3 or later]]
|
||||
- templates/err.html :: -
|
||||
- templates/login_nav.html :: -
|
||||
- templates/two_col.html :: -
|
||||
- tests/actions_test.py :: -
|
||||
- tests/auth_test.py :: -
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends 'login_nav.html' %}
|
||||
{% extends 'base.html' %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends "login_nav.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends 'login_nav.html' %}
|
||||
{% extends 'base.html' %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends 'login_nav.html' %}
|
||||
{% extends 'base.html' %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends "login_nav.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends "login_nav.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -36,5 +36,5 @@ def default(request, page=''):
|
||||
main = input_file.read()
|
||||
|
||||
title = _('%s Documentation') % cfg.product_name
|
||||
return TemplateResponse(request, 'login_nav.html',
|
||||
return TemplateResponse(request, 'base.html',
|
||||
{'title': title, 'main': main})
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends 'login_nav.html' %}
|
||||
{% extends 'base.html' %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends 'login_nav.html' %}
|
||||
{% extends 'base.html' %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends "login_nav.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends "login_nav.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends "login_nav.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends "login_nav.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends 'login_nav.html' %}
|
||||
{% extends 'base.html' %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends "login_nav.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends "login_nav.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends "login_nav.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -29,7 +29,7 @@ def index(request):
|
||||
sidebar_right = render_to_string('menu_block.html', {'menu': menu},
|
||||
RequestContext(request))
|
||||
|
||||
return TemplateResponse(request, 'login_nav.html',
|
||||
return TemplateResponse(request, 'base.html',
|
||||
{'title': _('Manage Users and Groups'),
|
||||
'sidebar_right': sidebar_right})
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends "login_nav.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends "login_nav.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -43,7 +43,7 @@ def index(request):
|
||||
sidebar_right = render_to_string('menu_block.html', {'menu': SIDE_MENU},
|
||||
RequestContext(request))
|
||||
|
||||
return TemplateResponse(request, 'login_nav.html',
|
||||
return TemplateResponse(request, 'base.html',
|
||||
{'title': _('XMPP Server'),
|
||||
'main': main,
|
||||
'sidebar_right': sidebar_right})
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends 'login_nav.html' %}
|
||||
{% extends 'base.html' %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends 'login_nav.html' %}
|
||||
{% extends 'base.html' %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -53,16 +53,50 @@
|
||||
<div class="navbar navbar-fixed-top">
|
||||
<div class="navbar-inner">
|
||||
<div class="container-fluid">
|
||||
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
||||
<a class="btn btn-navbar" data-toggle="collapse"
|
||||
data-target=".nav-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>
|
||||
<a href="{{ basehref }}/" class="logo-top">
|
||||
<img src="{% static 'theme/img/freedombox-logo-32px.png' %}" alt="FreedomBox" />
|
||||
<img src="{% static 'theme/img/freedombox-logo-32px.png' %}"
|
||||
alt="FreedomBox" />
|
||||
</a>
|
||||
<a class="brand" href="{{ basehref }}/">FreedomBox</a>
|
||||
{% 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 %}
|
||||
</div><!--/.nav-collapse -->
|
||||
</div>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends "login_nav.html" %}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title_block %}
|
||||
<span class="label label-important error-large">Error: {{ title }}</span>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends "login_nav.html" %}
|
||||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of Plinth.
|
||||
|
||||
@ -1,27 +0,0 @@
|
||||
{% 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 %}
|
||||
Loading…
x
Reference in New Issue
Block a user