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