Add a mellon/base.html template to make an indirection between mellon templates and the project base.html template (fixes #6301)

This commit is contained in:
Benjamin Dauvergne 2015-01-15 15:31:59 +01:00
parent 3c8e472f47
commit 3675773635
3 changed files with 7 additions and 7 deletions

View File

@ -1,13 +1,13 @@
{% extends "base.html" %}
{% extends "mellon/base.html" %}
{% load i18n %}
{% block extra_scripts %}
{% block mellon_extra_scripts %}
{% if error_redirect_after_timeout %}
<meta http-equiv="refresh" content="{{ error_redirect_after_timeout }};url={{ next_url }}"
{% endif %}
{% endblock %}
{% block content %}
{% block mellon_content %}
<div id="mellon-authentication-failure" class="mellon-message">
<h2 class="mellon-message-header">{% trans "Authentication failed" %}</h2>
<p class="mellon-message-body">

View File

@ -1,7 +1,7 @@
{% extends "base.html" %}
{% extends "mellon/base.html" %}
{% load i18n %}
{% block content %}
{% block mellon_content %}
<p>
{% blocktrans with name_id=saml_attributes.name_id_content %}Your user, {{ user }},
is inactive please contact your administrator.

View File

@ -1,7 +1,7 @@
{% extends "base.html" %}
{% extends "mellon/base.html" %}
{% load i18n %}
{% block content %}
{% block mellon_content %}
<p>
{% blocktrans with name_id=saml_attributes.name_id_content %}No user found for NameID {{ name_id }}{% endblocktrans %}
</p>