2022-11-13 23:14:38 +00:00
|
|
|
<nav>
|
2022-11-23 02:03:19 +00:00
|
|
|
<a href="/" {% if current_page == "home" %}class="selected"{% endif %} title="Home">
|
2023-02-26 07:10:54 +00:00
|
|
|
<i class="fa-solid fa-home"></i>
|
|
|
|
<span>Home</span>
|
2022-11-18 00:43:00 +00:00
|
|
|
</a>
|
2022-11-18 02:21:00 +00:00
|
|
|
{% if request.user.is_authenticated %}
|
2022-11-23 02:03:19 +00:00
|
|
|
<a href="{% url "notifications" %}" {% if current_page == "notifications" %}class="selected"{% endif %} title="Notifications">
|
2023-02-26 07:10:54 +00:00
|
|
|
<i class="fa-solid fa-at"></i>
|
|
|
|
<span>Notifications</span>
|
2022-11-18 02:21:00 +00:00
|
|
|
</a>
|
2022-11-29 05:14:52 +00:00
|
|
|
{% comment %}
|
|
|
|
Not sure we want to show this quite yet
|
2022-11-29 04:41:36 +00:00
|
|
|
<a href="{% url "explore" %}" {% if current_page == "explore" %}class="selected"{% endif %} title="Explore">
|
2023-02-26 07:10:54 +00:00
|
|
|
<i class="fa-solid fa-hashtag"></i>
|
|
|
|
<span>Explore</span>
|
2022-11-29 04:41:36 +00:00
|
|
|
</a>
|
2022-11-29 05:14:52 +00:00
|
|
|
{% endcomment %}
|
2022-11-23 02:03:19 +00:00
|
|
|
<a href="{% url "local" %}" {% if current_page == "local" %}class="selected"{% endif %} title="Local">
|
2023-02-26 07:10:54 +00:00
|
|
|
<i class="fa-solid fa-city"></i>
|
|
|
|
<span>Local</span>
|
2022-11-18 02:21:00 +00:00
|
|
|
</a>
|
2022-11-23 02:03:19 +00:00
|
|
|
<a href="{% url "federated" %}" {% if current_page == "federated" %}class="selected"{% endif %} title="Federated">
|
2023-02-26 07:10:54 +00:00
|
|
|
<i class="fa-solid fa-globe"></i>
|
|
|
|
<span>Federated</span>
|
2022-11-18 02:21:00 +00:00
|
|
|
</a>
|
2022-12-04 16:41:41 +00:00
|
|
|
<a href="{% url "follows" %}" {% if section == "follows" %}class="selected"{% endif %} title="Follows">
|
2023-02-26 07:10:54 +00:00
|
|
|
<i class="fa-solid fa-arrow-right-arrow-left"></i>
|
|
|
|
<span>Follows</span>
|
2022-12-04 16:41:41 +00:00
|
|
|
</a>
|
2023-02-26 07:10:54 +00:00
|
|
|
<hr>
|
2022-11-18 02:21:00 +00:00
|
|
|
<h3></h3>
|
2022-11-23 02:03:19 +00:00
|
|
|
<a href="{% url "compose" %}" {% if top_section == "compose" %}class="selected"{% endif %} title="Compose">
|
2023-02-26 07:10:54 +00:00
|
|
|
<i class="fa-solid fa-feather"></i>
|
|
|
|
<span>Compose</span>
|
2022-11-18 02:21:00 +00:00
|
|
|
</a>
|
2022-11-23 02:03:19 +00:00
|
|
|
<a href="{% url "search" %}" {% if top_section == "search" %}class="selected"{% endif %} title="Search">
|
2023-02-26 07:10:54 +00:00
|
|
|
<i class="fa-solid fa-search"></i>
|
|
|
|
<span>Search</span>
|
2022-11-18 02:21:00 +00:00
|
|
|
</a>
|
2022-11-29 04:41:36 +00:00
|
|
|
{% if current_page == "tag" %}
|
2023-01-09 16:58:17 +00:00
|
|
|
<a href="{% url "tag" hashtag.hashtag %}" class="selected" title="Tag {{ hashtag.display_name }}">
|
2023-02-26 07:10:54 +00:00
|
|
|
<i class="fa-solid fa-hashtag"></i>
|
|
|
|
<span>{{ hashtag.display_name }}</span>
|
2023-01-09 16:58:17 +00:00
|
|
|
</a>
|
2022-11-29 04:41:36 +00:00
|
|
|
{% endif %}
|
2022-11-23 02:03:19 +00:00
|
|
|
<a href="{% url "settings" %}" {% if top_section == "settings" %}class="selected"{% endif %} title="Settings">
|
2023-02-26 07:10:54 +00:00
|
|
|
<i class="fa-solid fa-gear"></i>
|
|
|
|
<span>Settings</span>
|
2022-11-18 02:21:00 +00:00
|
|
|
</a>
|
2022-12-30 08:01:03 +00:00
|
|
|
<a href="{% url "identity_select" %}" title="Select Identity">
|
2023-02-26 07:10:54 +00:00
|
|
|
<i class="fa-solid fa-users-viewfinder"></i>
|
|
|
|
<span>Select Identity</span>
|
2022-12-30 08:01:03 +00:00
|
|
|
</a>
|
2022-11-29 05:14:52 +00:00
|
|
|
{% else %}
|
2022-11-23 02:03:19 +00:00
|
|
|
<a href="{% url "local" %}" {% if current_page == "local" %}class="selected"{% endif %} title="Local Posts">
|
2023-02-26 07:10:54 +00:00
|
|
|
<i class="fa-solid fa-city"></i>
|
|
|
|
<span>Local Posts</span>
|
2022-11-18 02:21:00 +00:00
|
|
|
</a>
|
2022-11-29 04:41:36 +00:00
|
|
|
<a href="{% url "explore" %}" {% if current_page == "explore" %}class="selected"{% endif %} title="Explore">
|
2023-02-26 07:10:54 +00:00
|
|
|
<i class="fa-solid fa-hashtag"></i>
|
|
|
|
<span>Explore</span>
|
2022-11-29 04:41:36 +00:00
|
|
|
</a>
|
2022-11-18 02:21:00 +00:00
|
|
|
<h3></h3>
|
2022-11-18 07:09:04 +00:00
|
|
|
{% if config.signup_allowed %}
|
2022-11-23 02:03:19 +00:00
|
|
|
<a href="{% url "signup" %}" {% if current_page == "signup" %}class="selected"{% endif %} title="Create Account">
|
2023-02-26 07:10:54 +00:00
|
|
|
<i class="fa-solid fa-user-plus"></i>
|
|
|
|
<span>Create Account</span>
|
2022-11-18 07:09:04 +00:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
2022-11-18 02:21:00 +00:00
|
|
|
{% endif %}
|
2022-11-13 23:14:38 +00:00
|
|
|
</nav>
|
2022-11-18 00:43:00 +00:00
|
|
|
|
|
|
|
{% if current_page == "home" %}
|
|
|
|
<h2>Compose</h2>
|
2023-01-14 17:32:48 +00:00
|
|
|
<form action="{% url "compose" %}" method="POST" class="compose">
|
2022-11-18 00:43:00 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
{{ form.text }}
|
|
|
|
{{ form.content_warning }}
|
2022-11-26 02:33:46 +00:00
|
|
|
<input type="hidden" name="visibility" value="{{ config_identity.default_post_visibility }}">
|
2022-11-18 00:43:00 +00:00
|
|
|
<div class="buttons">
|
2022-12-11 16:25:48 +00:00
|
|
|
<span id="character-counter">{{ config.post_length }}</span>
|
2023-01-21 00:56:24 +00:00
|
|
|
<button class="toggle" _="on click or keyup[key is 'Enter'] toggle .enabled then toggle .hidden on #id_content_warning then halt">CW</button>
|
2022-12-11 16:25:48 +00:00
|
|
|
<button id="post-button">{% if config_identity.toot_mode %}Toot!{% else %}Post{% endif %}</button>
|
2022-11-18 00:43:00 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|