From 59db6e221e6702d89e7c8901018a620adb4f50a5 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Thu, 28 Dec 2017 19:21:29 +0100 Subject: [PATCH] extend the base template with login, profile and logout links --- django/didgeridoo/webshop/templates/webshop/base.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/django/didgeridoo/webshop/templates/webshop/base.html b/django/didgeridoo/webshop/templates/webshop/base.html index fa6b702..cf6c6e2 100644 --- a/django/didgeridoo/webshop/templates/webshop/base.html +++ b/django/didgeridoo/webshop/templates/webshop/base.html @@ -4,6 +4,12 @@
+ Home | + {% if user.is_authenticated %} + Profile | Logout + {% else %} + Login + {% endif %}

{% block section_title %}Music Instrument Shop{% endblock %}

{% block content %}{% endblock %}