add logout button

This commit is contained in:
aatish 2018-11-16 19:41:53 +05:45
parent 453cdf86c4
commit dd8701409a

View file

@ -20,6 +20,9 @@
<a class="p-2 text-dark" href="{% url 'jobs:job_list' %}">Jobs</a>
</nav>
<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 class="container">