Add login link
This commit is contained in:
parent
49b1d0e9ca
commit
c6e0837b1c
1 changed files with 3 additions and 1 deletions
|
@ -10,10 +10,12 @@
|
||||||
<body>
|
<body>
|
||||||
<nav>
|
<nav>
|
||||||
<a href="{% url 'articles-list' %}">Gab's Notes</a>
|
<a href="{% url 'articles-list' %}">Gab's Notes</a>
|
||||||
|
|
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
|
|
|
||||||
<a href="{% url 'drafts-list' %}">View drafts</a>
|
<a href="{% url 'drafts-list' %}">View drafts</a>
|
||||||
<a href="{% url 'admin:index' %}">Admin</a>
|
<a href="{% url 'admin:index' %}">Admin</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="{% url 'admin:login' %}?next=/">Log in</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if pages %}
|
{% if pages %}
|
||||||
|
|
|
|
||||||
|
|
Reference in a new issue