Compare commits

...

3 Commits

Author SHA1 Message Date
10d96c7c8f Using referrer in 403 2020-08-12 18:56:09 +02:00
0074c73562 Custom 403 2020-08-12 18:52:04 +02:00
1e082dcb25 Amind site link 2020-08-12 18:51:57 +02:00
2 changed files with 14 additions and 1 deletions

View File

@ -23,6 +23,10 @@
{% if user.is_authenticated %}
Hi {{ user.username }}!
<a class="LP-Link" href="{% url 'logout' %}"><span class="LP-Link__Text">logout</span></a>
{% if user.is_superuser %}
| <a class="LP-Link" href="{% url 'admin:index' %}" target="_blank"><span class="LP-Link__Text">admin</span></a>
{% endif %}
{% else %}
You are not logged in.
<a class="LP-Link" href="{% url 'login' %}"><span class="LP-Link__Text">login</span></a> |

View File

@ -0,0 +1,9 @@
{% extends 'global.html'%}
{% block title %}Forbidden{% endblock %}
{% block maincontent %}
{% if request.META.HTTP_REFERER %}
<p class="LP-Headline"><a href="{{ request.META.HTTP_REFERER }}" class="LP-Link">Go Back</a></p>
{% endif %}
{% endblock maincontent %}