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,7 +8,7 @@
{% endblock %}
{% block mellon_content %}
<div id="mellon-authentication-failure" class="mellon-message">
<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 %}
@ -25,5 +25,5 @@
Relaystate: {{ relaystate }}
-->
{% endif %}
</div>
</div>
{% 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>
<p>
{% blocktrans with name_id=saml_attributes.name_id_content %}Your user, {{ user }},
is inactive please contact your administrator.
{% endblocktrans %}
</p>
</p>
{% endblock %}

View File

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