Skip to content

Commit

Permalink
feat(templates): Add additional links to the base template menu
Browse files Browse the repository at this point in the history
These views are otherwise orphaned and undiscoverable via normal
user navigation.
  • Loading branch information
brianhelba authored and pennersr committed May 13, 2024
1 parent aa72246 commit 2511802
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions allauth/templates/allauth/layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@
<a href="{{ email_url }}">{% trans "Change Email" %}</a>
</li>
{% endif %}
{% url 'account_change_password' as change_password_url %}
{% if change_password_url %}
<li>
<a href="{{ change_password_url }}">{% trans "Change Password" %}</a>
</li>
{% endif %}
{% url 'mfa_index' as mfa_url %}
{% if mfa_url %}
<li>
<a href="{{ mfa_url }}">{% trans "Two-Factor Authentication" %}</a>
</li>
{% endif %}
{% url 'usersessions_list' as usersessions_list_url %}
{% if usersessions_list_url %}
<li>
<a href="{{ usersessions_list_url }}">{% trans "Sessions" %}</a>
</li>
{% endif %}
{% url 'account_logout' as logout_url %}
{% if logout_url %}
<li>
Expand Down

0 comments on commit 2511802

Please sign in to comment.