add logout button
This commit is contained in:
parent
453cdf86c4
commit
dd8701409a
1 changed files with 3 additions and 0 deletions
|
@ -20,6 +20,9 @@
|
||||||
<a class="p-2 text-dark" href="{% url 'jobs:job_list' %}">Jobs</a>
|
<a class="p-2 text-dark" href="{% url 'jobs:job_list' %}">Jobs</a>
|
||||||
</nav>
|
</nav>
|
||||||
<a class="btn btn-outline-primary" href="{% url 'jobs:job_create' %}">Post a job</a>
|
<a class="btn btn-outline-primary" href="{% url 'jobs:job_create' %}">Post a job</a>
|
||||||
|
{% if request.user.is_authenticated %}
|
||||||
|
<a class="btn text-dark" href="{% url 'logout' %}">Logout</a>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
Loading…
Reference in a new issue