misc: apply djhtml (#69422)

This commit is contained in:
Valentin Deniaud 2022-09-29 12:19:19 +02:00
parent a7a3582c97
commit d20066dc44
7 changed files with 43 additions and 43 deletions

View File

@ -8,22 +8,22 @@
{% endblock %}
{% 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">
{% blocktrans %}The authentication has failed.{% endblocktrans %}
{% if reason %}<p class="mellon-reason">{% trans "Reason" %}&nbsp;: {{ reason }}</p>{% endif %}
</p>
<p class="mellon-message-continue">
<a class="mellon-link" href="{{ next_url }}">{% trans "Continue" %}</a>
</p>
{% if debug %}
<!-- DEBUG INFO:
<div id="mellon-authentication-failure" class="mellon-message">
<h2 class="mellon-message-header">{% trans "Authentication failed" %}</h2>
<p class="mellon-message-body">
{% blocktrans %}The authentication has failed.{% endblocktrans %}
{% if reason %}<p class="mellon-reason">{% trans "Reason" %}&nbsp;: {{ reason }}</p>{% endif %}
</p>
<p class="mellon-message-continue">
<a class="mellon-link" href="{{ next_url }}">{% trans "Continue" %}</a>
</p>
{% if debug %}
<!-- DEBUG INFO:
Issuer: {{ issuer }}
Message: {{ status_message }}
Status codes: {{ status_codes|join:", " }}
Relaystate: {{ relaystate }}
-->
{% endif %}
</div>
{% endif %}
</div>
{% endblock %}

View File

@ -1,11 +1,11 @@
{% extends template_base|default:"base.html" %}
{% block extra_scripts %}
{% block mellon_extra_scripts %}
{% endblock %}
{% block mellon_extra_scripts %}
{% endblock %}
{% endblock %}
{% block content %}
{% block mellon_content %}
{% endblock %}
{% block mellon_content %}
{% endblock %}
{% endblock %}

View File

@ -1,10 +1,10 @@
{% load i18n %}
{% block content %}
<p><a class="button" href="{% url 'mellon_debug_login' %}">{% trans "Try again" %}</a></p>
<p><strong>{% trans "Attributes:" %}</strong> <pre>{{ attributes|pprint }}</pre></p>
<p><strong>{% trans "SAML assertion:" %}</strong> <pre>{{ assertion_dump }}</pre></p>
<p><strong>{% trans "SAML response:" %}</strong> <pre>{{ response_dump }}</pre></p>
<p><strong>{% trans "SAML artifact:" %}</strong> <pre>{{ login.msgBody }}</pre></p>
<p><strong>{% trans "Logs:" %}</strong> <pre>{{ logs }}</pre></p>
<p><a class="button" href="{% url 'mellon_debug_login' %}">{% trans "Try again" %}</a></p>
<p><strong>{% trans "Attributes:" %}</strong> <pre>{{ attributes|pprint }}</pre></p>
<p><strong>{% trans "SAML assertion:" %}</strong> <pre>{{ assertion_dump }}</pre></p>
<p><strong>{% trans "SAML response:" %}</strong> <pre>{{ response_dump }}</pre></p>
<p><strong>{% trans "SAML artifact:" %}</strong> <pre>{{ login.msgBody }}</pre></p>
<p><strong>{% trans "Logs:" %}</strong> <pre>{{ logs }}</pre></p>
{% endblock %}

View File

@ -2,9 +2,9 @@
{% load i18n %}
{% block mellon_content %}
<p>
{% blocktrans with name_id=saml_attributes.name_id_content %}Your user, {{ user }},
is inactive please contact your administrator.
{% endblocktrans %}
</p>
<p>
{% blocktrans with name_id=saml_attributes.name_id_content %}Your user, {{ user }},
is inactive please contact your administrator.
{% endblocktrans %}
</p>
{% endblock %}

View File

@ -2,10 +2,10 @@
{% load i18n %}
{% block mellon_content %}
<p>
{% blocktrans with name_id=saml_attributes.name_id_content %}No user found for NameID {{ name_id }}{% endblocktrans %}
</p>
<pre style="display: none">
<p>
{% blocktrans with name_id=saml_attributes.name_id_content %}No user found for NameID {{ name_id }}{% endblocktrans %}
</p>
<pre style="display: none">
{{ saml_attributes|pprint }}
</pre>
</pre>
{% endblock %}

View File

@ -1,6 +1,6 @@
<html>
<body>
{% block content %}
{% endblock %}
</body>
<body>
{% block content %}
{% endblock %}
</body>
</html>

View File

@ -1,8 +1,8 @@
<html>
<body>
<p>Theme is ok</p>
<p>{{ hook }}</p>
{% block content %}
{% endblock %}
</body>
<body>
<p>Theme is ok</p>
<p>{{ hook }}</p>
{% block content %}
{% endblock %}
</body>
</html>