mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-23 12:08:43 -06:00
Update base.html to account for other cases where passwords are not used, other than LDAP. (SSO solutions, for example.)
31 lines
1.5 KiB
HTML
31 lines
1.5 KiB
HTML
{% extends 'generic/_base.html' %}
|
|
{% load i18n %}
|
|
|
|
{% block tabs %}
|
|
<ul class="nav nav-tabs" role="presentation">
|
|
<li class="nav-item">
|
|
<a class="nav-link{% if active_tab == 'profile' %} active{% endif %}" href="{% url 'account:profile' %}">{% trans "Profile" %}</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link{% if active_tab == 'bookmarks' %} active{% endif %}" href="{% url 'account:bookmarks' %}">{% trans "Bookmarks" %}</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link{% if active_tab == 'notifications' %} active{% endif %}" href="{% url 'account:notifications' %}">{% trans "Notifications" %}</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link{% if active_tab == 'subscriptions' %} active{% endif %}" href="{% url 'account:subscriptions' %}">{% trans "Subscriptions" %}</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link{% if active_tab == 'preferences' %} active{% endif %}" href="{% url 'account:preferences' %}">{% trans "Preferences" %}</a>
|
|
</li>
|
|
{% if request.user.has_usable_password %}
|
|
<li class="nav-item">
|
|
<a class="nav-link{% if active_tab == 'password' %} active{% endif %}" href="{% url 'account:change_password' %}">{% trans "Password" %}</a>
|
|
</li>
|
|
{% endif %}
|
|
<li class="nav-item">
|
|
<a class="nav-link{% if active_tab == 'api-tokens' %} active{% endif %}" href="{% url 'account:usertoken_list' %}">{% trans "API Tokens" %}</a>
|
|
</li>
|
|
</ul>
|
|
{% endblock %}
|