Add titles to menus for collapsed mode

This commit is contained in:
Andrew Godwin 2022-11-22 19:03:19 -07:00
parent 48154fb20e
commit aaad289c52
3 changed files with 24 additions and 24 deletions

View file

@ -1,34 +1,34 @@
<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
</a>
{% 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
</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
</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
</a>
<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
</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
</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
</a>
{% 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
</a>
<h3></h3>
{% 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
</a>
{% endif %}

View file

@ -1,16 +1,16 @@
<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
</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
</a>
<a href="/auth/logout/">
<a href="/auth/logout/" title="Logout">
<i class="fa-solid fa-right-from-bracket"></i> Logout
</a>
{% if request.user.admin %}
<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
</a>
{% endif %}

View file

@ -1,39 +1,39 @@
<nav>
<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
</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
</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
</a>
<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 &amp; Security">
<i class="fa-solid fa-key"></i> Login &amp; Security
</a>
<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>
{% if request.user.admin %}
<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
</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
</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
</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
</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
</a>
<a href="/djadmin">
<a href="/djadmin" title="">
<i class="fa-solid fa-gear"></i> Django Admin
</a>
{% endif %}