Skip to content

Commit b1e6ac2

Browse files
committed
Improve user facing error pages
1 parent 59a2b02 commit b1e6ac2

2 files changed

Lines changed: 17 additions & 9 deletions

File tree

users/templates/users/auth/error.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,4 @@
1717
CAS_{{ code }}
1818
{% endblock errcode %}
1919

20-
{% block debug %}
21-
{{ debug }}
22-
{% endblock debug %}
20+
{% block debug %}{{ debug }}{% endblock %}

www/templates/error/error.html

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,24 @@ <h1>
1414
{% endblock expl %}
1515
</p>
1616

17-
<a href="/" class="button tiny">Retour</a><br>
17+
<a href="/" class="button tiny">Retour</a><br><br>
1818

19-
<small style="color: grey;">Code d'erreur: {% block errcode %}ERR_UNKNOWN{% endblock %}</small>
19+
<p>
20+
L'erreur persiste ? Fais un screenshot de cette page et envoie là à
21+
<a href="mailto:contact@dochub.be">
22+
contact@dochub.be</a>, on se fera un plaisir de t'aider !
23+
</p>
24+
25+
<small style="color: grey;">
26+
Code d'erreur: {% block errcode %}ERR_UNKNOWN{% endblock %}
27+
<br>
28+
Date: {% now "c" %}
29+
</small>
2030

21-
<pre style="color: grey; font-size: .5em">
22-
{% block debug %}
23-
{% endblock debug %}
24-
</pre>
31+
<pre style="color: grey; font-size: .8em; white-space: pre-wrap;">
32+
Contexte: {% block debug %}
33+
{% endblock debug %}
34+
</pre>
2535

2636
</div>
2737
</div>

0 commit comments

Comments
 (0)