Add titles to menus for collapsed mode
This commit is contained in:
parent
48154fb20e
commit
aaad289c52
|
@ -1,34 +1,34 @@
|
||||||
<nav>
|
<nav>
|
||||||
<a href="/" {% if current_page == "home" %}class="selected"{% endif %}>
|
<a href="/" {% if current_page == "home" %}class="selected"{% endif %} title="Home">
|
||||||
<i class="fa-solid fa-home"></i> Home
|
<i class="fa-solid fa-home"></i> Home
|
||||||
</a>
|
</a>
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
<a href="{% url "notifications" %}" {% if current_page == "notifications" %}class="selected"{% endif %}>
|
<a href="{% url "notifications" %}" {% if current_page == "notifications" %}class="selected"{% endif %} title="Notifications">
|
||||||
<i class="fa-solid fa-at"></i> Notifications
|
<i class="fa-solid fa-at"></i> Notifications
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url "local" %}" {% if current_page == "local" %}class="selected"{% endif %}>
|
<a href="{% url "local" %}" {% if current_page == "local" %}class="selected"{% endif %} title="Local">
|
||||||
<i class="fa-solid fa-city"></i> Local
|
<i class="fa-solid fa-city"></i> Local
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url "federated" %}" {% if current_page == "federated" %}class="selected"{% endif %}>
|
<a href="{% url "federated" %}" {% if current_page == "federated" %}class="selected"{% endif %} title="Federated">
|
||||||
<i class="fa-solid fa-globe"></i> Federated
|
<i class="fa-solid fa-globe"></i> Federated
|
||||||
</a>
|
</a>
|
||||||
<h3></h3>
|
<h3></h3>
|
||||||
<a href="{% url "compose" %}" {% if top_section == "compose" %}class="selected"{% endif %}>
|
<a href="{% url "compose" %}" {% if top_section == "compose" %}class="selected"{% endif %} title="Compose">
|
||||||
<i class="fa-solid fa-feather"></i> Compose
|
<i class="fa-solid fa-feather"></i> Compose
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url "search" %}" {% if top_section == "search" %}class="selected"{% endif %}>
|
<a href="{% url "search" %}" {% if top_section == "search" %}class="selected"{% endif %} title="Search">
|
||||||
<i class="fa-solid fa-search"></i> Search
|
<i class="fa-solid fa-search"></i> Search
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url "settings" %}" {% if top_section == "settings" %}class="selected"{% endif %}>
|
<a href="{% url "settings" %}" {% if top_section == "settings" %}class="selected"{% endif %} title="Settings">
|
||||||
<i class="fa-solid fa-gear"></i> Settings
|
<i class="fa-solid fa-gear"></i> Settings
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{% url "local" %}" {% if current_page == "local" %}class="selected"{% endif %}>
|
<a href="{% url "local" %}" {% if current_page == "local" %}class="selected"{% endif %} title="Local Posts">
|
||||||
<i class="fa-solid fa-city"></i> Local Posts
|
<i class="fa-solid fa-city"></i> Local Posts
|
||||||
</a>
|
</a>
|
||||||
<h3></h3>
|
<h3></h3>
|
||||||
{% if config.signup_allowed %}
|
{% if config.signup_allowed %}
|
||||||
<a href="{% url "signup" %}" {% if current_page == "signup" %}class="selected"{% endif %}>
|
<a href="{% url "signup" %}" {% if current_page == "signup" %}class="selected"{% endif %} title="Create Account">
|
||||||
<i class="fa-solid fa-user-plus"></i> Create Account
|
<i class="fa-solid fa-user-plus"></i> Create Account
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
<nav>
|
<nav>
|
||||||
<a href="/identity/select/" {% if identities %}class="selected"{% endif %}>
|
<a href="/identity/select/" {% if identities %}class="selected"{% endif %} title="Select Identity">
|
||||||
<i class="fa-solid fa-user"></i> Select Identity
|
<i class="fa-solid fa-user"></i> Select Identity
|
||||||
</a>
|
</a>
|
||||||
<a href="/identity/create/" {% if form %}class="selected"{% endif %}>
|
<a href="/identity/create/" {% if form %}class="selected"{% endif %} title="Create Identity">
|
||||||
<i class="fa-solid fa-plus"></i> Create Identity
|
<i class="fa-solid fa-plus"></i> Create Identity
|
||||||
</a>
|
</a>
|
||||||
<a href="/auth/logout/">
|
<a href="/auth/logout/" title="Logout">
|
||||||
<i class="fa-solid fa-right-from-bracket"></i> Logout
|
<i class="fa-solid fa-right-from-bracket"></i> Logout
|
||||||
</a>
|
</a>
|
||||||
{% if request.user.admin %}
|
{% if request.user.admin %}
|
||||||
<h3>Administration</h3>
|
<h3>Administration</h3>
|
||||||
<a href="{% url "admin_domains" %}" {% if section == "domains" %}class="selected"{% endif %}>
|
<a href="{% url "admin_domains" %}" {% if section == "domains" %}class="selected"{% endif %} title="Domains">
|
||||||
<i class="fa-solid fa-globe"></i> Domains
|
<i class="fa-solid fa-globe"></i> Domains
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -1,39 +1,39 @@
|
||||||
<nav>
|
<nav>
|
||||||
<h3>Identity</h3>
|
<h3>Identity</h3>
|
||||||
<a href="{% url "settings_profile" %}" {% if section == "profile" %}class="selected"{% endif %}>
|
<a href="{% url "settings_profile" %}" {% if section == "profile" %}class="selected"{% endif %} title="Profile">
|
||||||
<i class="fa-solid fa-user"></i> Profile
|
<i class="fa-solid fa-user"></i> Profile
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url "settings_interface" %}" {% if section == "interface" %}class="selected"{% endif %}>
|
<a href="{% url "settings_interface" %}" {% if section == "interface" %}class="selected"{% endif %} title="Interface">
|
||||||
<i class="fa-solid fa-display"></i> Interface
|
<i class="fa-solid fa-display"></i> Interface
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url "settings_follows" %}" {% if section == "follows" %}class="selected"{% endif %}>
|
<a href="{% url "settings_follows" %}" {% if section == "follows" %}class="selected"{% endif %} title="Follows">
|
||||||
<i class="fa-solid fa-arrow-right-arrow-left"></i> Follows
|
<i class="fa-solid fa-arrow-right-arrow-left"></i> Follows
|
||||||
</a>
|
</a>
|
||||||
<h3>Account</h3>
|
<h3>Account</h3>
|
||||||
<a href="{% url "settings_security" %}" {% if section == "security" %}class="selected"{% endif %}>
|
<a href="{% url "settings_security" %}" {% if section == "security" %}class="selected"{% endif %} title="Login & Security">
|
||||||
<i class="fa-solid fa-key"></i> Login & Security
|
<i class="fa-solid fa-key"></i> Login & Security
|
||||||
</a>
|
</a>
|
||||||
<a href="/auth/logout/">
|
<a href="/auth/logout/">
|
||||||
<i class="fa-solid fa-right-from-bracket"></i> Logout
|
<i class="fa-solid fa-right-from-bracket" title="Logout"></i> Logout
|
||||||
</a>
|
</a>
|
||||||
{% if request.user.admin %}
|
{% if request.user.admin %}
|
||||||
<h3>Administration</h3>
|
<h3>Administration</h3>
|
||||||
<a href="{% url "admin_basic" %}" {% if section == "basic" %}class="selected"{% endif %}>
|
<a href="{% url "admin_basic" %}" {% if section == "basic" %}class="selected"{% endif %} title="Basic">
|
||||||
<i class="fa-solid fa-book"></i> Basic
|
<i class="fa-solid fa-book"></i> Basic
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url "admin_domains" %}" {% if section == "domains" %}class="selected"{% endif %}>
|
<a href="{% url "admin_domains" %}" {% if section == "domains" %}class="selected"{% endif %} title="Domains">
|
||||||
<i class="fa-solid fa-globe"></i> Domains
|
<i class="fa-solid fa-globe"></i> Domains
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url "admin_users" %}" {% if section == "users" %}class="selected"{% endif %}>
|
<a href="{% url "admin_users" %}" {% if section == "users" %}class="selected"{% endif %} title="Users">
|
||||||
<i class="fa-solid fa-users"></i> Users
|
<i class="fa-solid fa-users"></i> Users
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url "admin_identities" %}" {% if section == "identities" %}class="selected"{% endif %}>
|
<a href="{% url "admin_identities" %}" {% if section == "identities" %}class="selected"{% endif %} title="Identities">
|
||||||
<i class="fa-solid fa-id-card"></i> Identities
|
<i class="fa-solid fa-id-card"></i> Identities
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url "admin_invites" %}" {% if section == "invites" %}class="selected"{% endif %}>
|
<a href="{% url "admin_invites" %}" {% if section == "invites" %}class="selected"{% endif %} title="Invites">
|
||||||
<i class="fa-solid fa-envelope"></i> Invites
|
<i class="fa-solid fa-envelope"></i> Invites
|
||||||
</a>
|
</a>
|
||||||
<a href="/djadmin">
|
<a href="/djadmin" title="">
|
||||||
<i class="fa-solid fa-gear"></i> Django Admin
|
<i class="fa-solid fa-gear"></i> Django Admin
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue