templates: add admin-links placeholder

This commit is contained in:
Benjamin Dauvergne 2013-05-13 17:12:04 +02:00
parent f793b4d855
commit 3b5a64aff7
3 changed files with 11 additions and 0 deletions

View File

@ -19,6 +19,9 @@
title="Montpellier agglomération" /></a>
<div class="region-header">
{% if user.is_authenticated %}
<div id="admin-links">
{% block admin-links %}{% endblock %}
</div>
<div id="logout-block">
<span>{{ user.first_name }} {{ user.last_name }}</span>
<a href="{% url 'logout' %}">{% trans "Logout" %}</a>

View File

@ -1,6 +1,10 @@
{% extends "base.html" %}
{% load cms_tags %}
{% block admin-links %}
{% placeholder "admin-links" %}
{% endblock %}
{% block content %}
<div id="center">
{% block center %}

View File

@ -1,6 +1,10 @@
{% extends "base.html" %}
{% load cms_tags %}
{% block admin-links %}
{% placeholder "admin-links" %}
{% endblock %}
{% block content %}
<div id="left">
{% block left %}