From 9e56f2f1675231b8d5ad842bd62e400cd3a86f17 Mon Sep 17 00:00:00 2001 From: Serghei MIHAI Date: Mon, 24 Nov 2014 18:12:59 +0100 Subject: [PATCH] base.html declared on the templates root and application base inherits from it --- hobo/templates/base.html | 14 ++++++++++++++ hobo/templates/hobo/base.html | 15 +-------------- 2 files changed, 15 insertions(+), 14 deletions(-) create mode 100644 hobo/templates/base.html diff --git a/hobo/templates/base.html b/hobo/templates/base.html new file mode 100644 index 0000000..1e2509d --- /dev/null +++ b/hobo/templates/base.html @@ -0,0 +1,14 @@ +{% extends "gadjo/base.html" %} +{% block page-title %}Portail admin{% endblock %} +{% block site-title %}Portail admin{% endblock %} +{% block footer %}Portail admin — Copyright © Entr'ouvert{% endblock %} + +{% block css %} + +{% endblock %} + +{% if user.is_authenticated %} +{% block logout-url %} +{% url "logout" %} +{% endblock %} +{% endif %} diff --git a/hobo/templates/hobo/base.html b/hobo/templates/hobo/base.html index 1e2509d..94d9808 100644 --- a/hobo/templates/hobo/base.html +++ b/hobo/templates/hobo/base.html @@ -1,14 +1 @@ -{% extends "gadjo/base.html" %} -{% block page-title %}Portail admin{% endblock %} -{% block site-title %}Portail admin{% endblock %} -{% block footer %}Portail admin — Copyright © Entr'ouvert{% endblock %} - -{% block css %} - -{% endblock %} - -{% if user.is_authenticated %} -{% block logout-url %} -{% url "logout" %} -{% endblock %} -{% endif %} +{% extends "base.html" %} -- 2.1.3