extend the base template with login, profile and logout links
This commit is contained in:
parent
de3e07dedb
commit
59db6e221e
|
@ -4,6 +4,12 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="content" class="flex">
|
<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>
|
<h1>{% block section_title %}Music Instrument Shop{% endblock %}</h1>
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue