From c20e9c866dc95e46c16334433ce7bc667d97d385 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Tue, 4 Aug 2020 23:16:45 +0200 Subject: [PATCH] Moved login / logout links and greeting into header. --- .../lostplaces_app/templates/global.html | 31 ++++++++++++++----- lostplaces/lostplaces_app/templates/home.html | 9 ------ 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/lostplaces/lostplaces_app/templates/global.html b/lostplaces/lostplaces_app/templates/global.html index 367590f..8f04726 100644 --- a/lostplaces/lostplaces_app/templates/global.html +++ b/lostplaces/lostplaces_app/templates/global.html @@ -10,23 +10,40 @@ {% block title %}Urban Exploration{% endblock %} +
+
+ + {% if user.is_authenticated %} + Hi {{ user.username }}! + logout

+ {% else %} +

Du bist nicht eingeloggt.

+ login | + signup + {% endif %} +
+
{% block maincontent %} diff --git a/lostplaces/lostplaces_app/templates/home.html b/lostplaces/lostplaces_app/templates/home.html index 6010b6e..d5956fb 100644 --- a/lostplaces/lostplaces_app/templates/home.html +++ b/lostplaces/lostplaces_app/templates/home.html @@ -5,15 +5,6 @@ {% block maincontent %} -{% if user.is_authenticated %} - Hi {{ user.username }}! -

logout

-{% else %} -

Du bist nicht eingeloggt.

- login | - signup -{% endif %} -

Explore the latest locations