diff options
author | Andrew Godwin | 2022-11-17 18:52:00 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-17 15:10:09 -0700 |
commit | 0851fbd1ec09b142608667bf90ee806e59cafb28 (patch) | |
tree | eb4bfa7e52ef0a66460840747ea83b7685e1a5e8 /templates/activities/_menu.html | |
parent | 2154e6f02252576d8652e66f26fa4ae635d0f8ee (diff) | |
download | takahe-0851fbd1ec09b142608667bf90ee806e59cafb28.tar.gz takahe-0851fbd1ec09b142608667bf90ee806e59cafb28.tar.bz2 takahe-0851fbd1ec09b142608667bf90ee806e59cafb28.zip |
Add search and better notifications
Diffstat (limited to 'templates/activities/_menu.html')
-rw-r--r-- | templates/activities/_menu.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/activities/_menu.html b/templates/activities/_menu.html new file mode 100644 index 0000000..6bb18c2 --- /dev/null +++ b/templates/activities/_menu.html @@ -0,0 +1,28 @@ +<nav> + <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 }} + <input type="hidden" name="visibility" value="0"> + <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 %} |