mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
805892f623
* Clean up & comment base templates * Clean up login template & form * Use SVG file for NetBox logo * Simplify breadcrumbs * Merge changelog.html into home.html * Rename title_container block to header * Move breadcrumbs block to object.html * Attach names to endblock template tags * Reorganize root-level templates into base/ and inc/ * Remove obsolete reference to Bootstrap 3.4.1
22 lines
1.0 KiB
HTML
22 lines
1.0 KiB
HTML
{% extends 'base/layout.html' %}
|
|
|
|
{% block title %}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-sm-3 col-md-2 col-md-offset-1 border-end">
|
|
<nav class="nav nav-pills nav-justified flex-column">
|
|
<a class="nav-item nav-link text-start{% if active_tab == 'profile' %} active{% endif %}" href="{% url 'user:profile' %}">Profile</a>
|
|
<a class="nav-link nav-item text-start{% if active_tab == 'preferences' %} active{% endif %}" href="{% url 'user:preferences' %}">Preferences</a>
|
|
{% if not request.user.ldap_username %}
|
|
<a class="nav-link nav-item text-start{% if active_tab == 'change-password' %} active{% endif %}" href="{% url 'user:change_password' %}">Change Password</a>
|
|
{% endif %}
|
|
<a class="nav-link nav-item text-start{% if active_tab == 'api-tokens' %} active{% endif %}" href="{% url 'user:token_list' %}">API Tokens</a>
|
|
</nav>
|
|
</div>
|
|
<div class="col-sm-9 col-md-8 px-4">
|
|
{% block usercontent %}{% endblock %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|