diff options
author | Andrew Godwin | 2022-11-17 17:43:00 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-17 14:13:55 -0700 |
commit | 2154e6f02252576d8652e66f26fa4ae635d0f8ee (patch) | |
tree | a65a4e051c0cb9e99c77a083bf5b011b79f75cb8 /templates/activities/_home_menu.html | |
parent | f5eafb0ca0af3ed064202abbe99bfbeef8bbb74d (diff) | |
download | takahe-2154e6f02252576d8652e66f26fa4ae635d0f8ee.tar.gz takahe-2154e6f02252576d8652e66f26fa4ae635d0f8ee.tar.bz2 takahe-2154e6f02252576d8652e66f26fa4ae635d0f8ee.zip |
Rework UI to have vertical menus
Diffstat (limited to 'templates/activities/_home_menu.html')
-rw-r--r-- | templates/activities/_home_menu.html | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/templates/activities/_home_menu.html b/templates/activities/_home_menu.html index c88a1d7..db441a2 100644 --- a/templates/activities/_home_menu.html +++ b/templates/activities/_home_menu.html @@ -1,6 +1,27 @@ <nav> - <a href="/" {% if current_page == "home" %}class="selected"{% endif %}>Home</a> - <a href="/notifications/" {% if current_page == "notifications" %}class="selected"{% endif %}>Notifications</a> - <a href="/local/" {% if current_page == "local" %}class="selected"{% endif %}>Local</a> - <a href="/federated/" {% if current_page == "federated" %}class="selected"{% endif %}>Federated</a> + <a href="/" {% if current_page == "home" %}class="selected"{% endif %}> + <i class="fa-solid fa-home"></i> Home + </a> + <a href="/notifications/" {% if current_page == "notifications" %}class="selected"{% endif %}> + <i class="fa-solid fa-at"></i> Notifications + </a> + <a href="/local/" {% if current_page == "local" %}class="selected"{% endif %}> + <i class="fa-solid fa-city"></i> Local + </a> + <a href="/federated/" {% if current_page == "federated" %}class="selected"{% endif %}> + <i class="fa-solid fa-globe"></i> Federated + </a> </nav> + +{% if current_page == "home" %} + <h2>Compose</h2> + <form action="/compose/" method="POST" class="compose"> + {% csrf_token %} + {{ form.text }} + {{ form.content_warning }} + <div class="buttons"> + <span class="button toggle" _="on click toggle .enabled then toggle .hidden on #id_content_warning">CW</span> + <button>{% if config_identity.toot_mode %}Toot!{% else %}Post{% endif %}</button> + </div> + </form> +{% endif %} |