Merge branch 'master' of mowoe.com:reverend/lostplaces-backend

This commit is contained in:
Marcus Scholz 2020-08-12 18:59:27 +02:00
commit b6b17f4caf
2 changed files with 14 additions and 1 deletions

View File

@ -22,7 +22,11 @@
<span class="LP-Paragraph">
{% if user.is_authenticated %}
Hi {{ user.username }}!
<a class="LP-Link" href="{% url 'logout' %}"><span class="LP-Link__Text">logout</span></a>
<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 %}