Skip to content

Commit

Permalink
Add links to menu
Browse files Browse the repository at this point in the history
  • Loading branch information
ababic committed Jul 12, 2022
1 parent 542d44a commit 00b1736
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions templates/includes/login-status.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<div class="login-status" role="region" aria-labelledby="authentication_link">
{% if request.user.is_authenticated %}
<a href="{% url 'account_logout' %}" class="login-status__link" id="authentication_link">Sign out</a>
{% if MY_ACCOUNT_URL %}
<a href="{{ MY_ACCOUNT_URL }}" class="login-status__link">My account</a>
{% endif %}
<a href="{% url 'account_logout' %}" class="login-status__link" id="authentication_link">Logout</a>
{% else %}
<a href="{% url 'account_login' %}" class="login-status__link" id="authentication_link">Sign in</a>
<a href="{% url 'account_login' %}" class="login-status__link" id="authentication_link">Login</a>
{% if REGISTER_URL %}
<a href="{{ REGISTER_URL }}" class="login-status__link">Register</a>
{% endif %}
{% endif %}
</div>

0 comments on commit 00b1736

Please sign in to comment.