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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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