summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-22 19:21:01 -0700
committerAndrew Godwin2022-11-22 19:21:01 -0700
commit9c424d9bb6aa0eb606128bcce3e33816967a2e8d (patch)
tree6a30edbc00381ce919e17caa89d6eaad54c586e4 /templates
parentaaad289c5211570ec98ddd9d753517ef827686dc (diff)
downloadtakahe-9c424d9bb6aa0eb606128bcce3e33816967a2e8d.tar.gz
takahe-9c424d9bb6aa0eb606128bcce3e33816967a2e8d.tar.bz2
takahe-9c424d9bb6aa0eb606128bcce3e33816967a2e8d.zip
Add manual HTMX refresh of timelines
Refs #33
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/base.html b/templates/base.html
index 49e3909..1269fad 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -34,9 +34,11 @@
<a href="{% url "search" %}" title="Search" {% if top_section == "search" %}class="selected"{% endif %}>
<i class="fa-solid fa-search"></i>
</a>
- <a href="{% url "settings" %}" title="Settings" {% if top_section == "settings" %}class="selected"{% endif %}>
- <i class="fa-solid fa-gear"></i>
- </a>
+ {% if allows_refresh %}
+ <a href="." title="Refresh" hx-get="." hx-select=".left-column" hx-target=".left-column" hx-swap="outerHTML">
+ <i class="fa-solid fa-rotate"></i>
+ </a>
+ {% endif %}
<div class="gap"></div>
<a href="/identity/select/" class="identity">
{% if not request.identity %}