Add login link

This commit is contained in:
Gabriel Augendre 2020-08-17 13:19:41 +02:00
parent 49b1d0e9ca
commit c6e0837b1c

View file

@ -10,10 +10,12 @@
<body>
<nav>
<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 'admin:index' %}">Admin</a>
{% else %}
<a href="{% url 'admin:login' %}?next=/">Log in</a>
{% endif %}
{% if pages %}
|