SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit a2db4444 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

update 403 template to show reason

parent 198d228b
No related branches found
No related tags found
No related merge requests found
...@@ -9,13 +9,13 @@ ...@@ -9,13 +9,13 @@
<div class="col-12"> <div class="col-12">
<div style="text-align: center;"> <div style="text-align: center;">
<img src="{% static 'scipost/images/logo_scipost_RGB_HTML_groot.png' %}" alt="SciPost logo" width="240" style="margin-top: 20px; margin-bottom: 20px" /> <img src="{% static 'scipost/images/logo_scipost_RGB_HTML_groot.png' %}" alt="SciPost logo" width="240" style="margin-top: 20px; margin-bottom: 20px" />
<h1>You are not authorized to view the requested page.</h1> <h1>Error 403: Forbidden</h1>
<h2>403</h2> <h2>{{ exception|default:"You are not authorized to view the requested page." }}</h2>
{% if request.user.is_anonymous %} {% if request.user.is_anonymous %}
<p style="margin-top: 20px;">Please <a href="{% url 'scipost:login' %}">login</a> first, and try again.</p> <p style="margin-top: 20px;">Please <a href="{% url 'scipost:login' %}">login</a> first, and try again.</p>
{% else %} {% else %}
<p style="margin-top: 20px;">Continue to your <a href="{% url 'scipost:personal_page' %}">personal page</a>.</p> <p style="margin-top: 20px;">Continue to your <a href="{% url 'scipost:personal_page' %}">personal page</a>.</p>
{% endif %} {% endif %}
</div> </div>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment