extend the base template with login, profile and logout links

This commit is contained in:
Andreas Zweili 2017-12-28 19:21:29 +01:00
parent de3e07dedb
commit 59db6e221e
1 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,12 @@
</head>
<body>
<div id="content" class="flex">
<a href="{% url 'index' %}">Home</a> |
{% if user.is_authenticated %}
<a href="{% url 'profile' %}">Profile</a> | <a href="{% url 'logout' %}">Logout</a>
{% else %}
<a href="{% url 'login' %}">Login</a>
{% endif %}
<h1>{% block section_title %}Music Instrument Shop{% endblock %}</h1>
{% block content %}{% endblock %}
</div>