diff --git a/lostplaces/lostplaces_app/templates/global.html b/lostplaces/lostplaces_app/templates/global.html index 41ea0a7..9c8dcf6 100644 --- a/lostplaces/lostplaces_app/templates/global.html +++ b/lostplaces/lostplaces_app/templates/global.html @@ -22,7 +22,11 @@ {% if user.is_authenticated %} Hi {{ user.username }}! - logout + logout + {% if user.is_superuser %} + | admin + {% endif %} + {% else %} You are not logged in. login | diff --git a/lostplaces/templates/403.html b/lostplaces/templates/403.html new file mode 100644 index 0000000..29954f0 --- /dev/null +++ b/lostplaces/templates/403.html @@ -0,0 +1,9 @@ +{% extends 'global.html'%} + +{% block title %}Forbidden{% endblock %} + +{% block maincontent %} +{% if request.META.HTTP_REFERER %} +

Go Back

+{% endif %} +{% endblock maincontent %} \ No newline at end of file