templates: active tab + base_settings > base_admin

This commit is contained in:
Élie Bouttier 2014-08-30 18:27:26 -07:00
parent 88db4070a5
commit 30d8b7bd85
14 changed files with 17 additions and 13 deletions

View file

@ -1,4 +1,4 @@
{% extends 'base_settings.html' %}
{% extends 'base_admin.html' %}
{% load staticfiles %}
{% load humanize %}

View file

@ -1,4 +1,4 @@
{% extends 'base_settings.html' %}
{% extends 'base_admin.html' %}
{% load staticfiles %}
{% load humanize %}

View file

@ -1,4 +1,4 @@
{% extends 'base_settings.html' %}
{% extends 'base_admin.html' %}
{% load staticfiles %}
{% load humanize %}

View file

@ -2,6 +2,8 @@
{% load django_markdown %}
{% block profiletab %} class="active"{% endblock %}
{% block content %}
<div class="page-header">

View file

@ -1,4 +1,4 @@
{% extends 'base_settings.html' %}
{% extends 'base_admin.html' %}
{% load staticfiles %}
{% load humanize %}

View file

@ -1,4 +1,4 @@
{% extends 'base_settings.html' %}
{% extends 'base_admin.html' %}
{% load staticfiles %}
{% load humanize %}

View file

@ -1,4 +1,4 @@
{% extends 'base_settings.html' %}
{% extends 'base_admin.html' %}
{% load staticfiles %}
{% load humanize %}

View file

@ -1,4 +1,4 @@
{% extends 'base_settings.html' %}
{% extends 'base_admin.html' %}
{% load staticfiles %}
{% load humanize %}

View file

@ -1,4 +1,4 @@
{% extends 'base_settings.html' %}
{% extends 'base_admin.html' %}
{% load staticfiles %}
{% load humanize %}

View file

@ -72,9 +72,9 @@
<ul class="nav navbar-nav navbar-right">
{% if request.user.is_authenticated %}
{% if perm.manage_settings or perm.manage_user or perm_manage_group or perm.manage_team or perm.manage_global_permission %}
<li><a href="{% url 'admin' %}" rel="tooltip" data-toggle="tooltip" data-placement="bottom" title="Administration"><span class="glyphicon glyphicon-cog"></span></a></li>
<li{% block admintab %}{% endblock %}><a href="{% url 'admin' %}" rel="tooltip" data-toggle="tooltip" data-placement="bottom" title="Administration"><span class="glyphicon glyphicon-cog"></span></a></li>
{% endif %}
<li><a href="{% url 'profile' %}" rel="tooltip" data-toggle="tooltip" data-placement="bottom" title="Profile"><span class="glyphicon glyphicon-user"></span> {{ request.user }}</a></li>
<li{% block profiletab %}{% endblock %}><a href="{% url 'profile' %}" rel="tooltip" data-toggle="tooltip" data-placement="bottom" title="Profile"><span class="glyphicon glyphicon-user"></span> {{ request.user }}</a></li>
<li><a href="{% url 'logout' %}" rel="tooltip" data-toggle="tooltip" data-placement="bottom" title="Logout"><span class="glyphicon glyphicon-log-out"></span></a></li>
{% else %}
<li><a href="{% url 'login' %}?next={{ request.path }}&prev={{ request.path }}"><span class="glyphicon glyphicon-log-in"></span>&nbsp;Login</a></li>

View file

@ -2,6 +2,8 @@
{% load django_markdown %}
{% block admintab %} class="active"{% endblock %}
{% block content %}
<ul class="nav nav-tabs" role="tablist">

View file

@ -1,4 +1,4 @@
{% extends 'base_settings.html' %}
{% extends 'base_admin.html' %}
{% load django_markdown %}
{% load permissions_tags %}

View file

@ -1,4 +1,4 @@
{% extends 'base_settings.html' %}
{% extends 'base_admin.html' %}
{% load django_markdown %}
{% load accounts_tags %}

View file

@ -1,4 +1,4 @@
{% extends 'base_settings.html' %}
{% extends 'base_admin.html' %}
{% block settingtab %} class="active"{% endblock %}