forked from Fediversity/Fediversity
make login link part of global navigation
this makes navigation uniform and the information architecture easier to reason about
This commit is contained in:
parent
fc586273dc
commit
59122901ce
1 changed files with 22 additions and 10 deletions
|
@ -16,17 +16,29 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<header>
|
<header>
|
||||||
{% load custom_tags %}
|
|
||||||
{% if user.is_authenticated %}
|
|
||||||
<p>Welcome, {{ user.username }}! <a href="{% auth_url 'logout' %}">Logout</a></p>
|
|
||||||
{% else %}
|
|
||||||
<p><a href="{% auth_url 'login' %}">Login</a></p>
|
|
||||||
{% endif %}
|
|
||||||
</header>
|
|
||||||
{% block navigation %}
|
{% block navigation %}
|
||||||
<nav>
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href="{% url 'index' %}">Start</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="{% url 'service_list' %}">Services</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
{% load custom_tags %}
|
||||||
|
<li>
|
||||||
|
{% if user.is_authenticated %}
|
||||||
|
Welcome, {{ user.username }}! <a id="logout" href="{% auth_url 'logout' %}">Logout</a>
|
||||||
|
{% else %}
|
||||||
|
<a id="login" href="{% auth_url 'login' %}">Login</a>
|
||||||
|
{% endif %}
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
{% endblock navigation %}
|
{% endblock navigation %}
|
||||||
|
</header>
|
||||||
|
|
||||||
{% block layout %}
|
{% block layout %}
|
||||||
<article>
|
<article>
|
||||||
|
|
Loading…
Add table
Reference in a new issue