Add write link to header and reorder links
This commit is contained in:
parent
48f9a2e468
commit
524c42544d
1 changed files with 5 additions and 2 deletions
|
@ -16,15 +16,18 @@
|
|||
<body>
|
||||
<nav>
|
||||
<a href="{% url 'articles-list' %}">Articles list</a>
|
||||
|
|
||||
·
|
||||
{% if user.is_authenticated %}
|
||||
<a href="{% url 'admin:articles_article_add' %}">Write</a>
|
||||
<a href="{% url 'drafts-list' %}">View drafts <span class="pill">{{ drafts_count }}</span></a>
|
||||
·
|
||||
<a href="{% url 'admin:index' %}">Admin</a>
|
||||
<a href="{% url 'admin:logout' %}?next=/">Log out</a>
|
||||
{% else %}
|
||||
<a href="{% url 'admin:login' %}?next=/">Log in</a>
|
||||
{% endif %}
|
||||
{% if pages %}
|
||||
|
|
||||
·
|
||||
{% for page in pages %}
|
||||
<a href="{% url 'article-detail' slug=page.slug %}">{{ page.title }}</a>
|
||||
{% endfor %}
|
||||
|
|
Reference in a new issue