aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2024-06-17 14:48:13 +0000
committerr <r@freesoftwareextremist.com>2024-06-17 14:48:13 +0000
commitefb0e0417c4b290bfa36113b8662f52837bb713e (patch)
treed11bd031325c052a52fbf3acc70ed34e252f1797 /templates
parente46d067866d3345d9e160fa50fd16af5430e2418 (diff)
downloadbloat-efb0e0417c4b290bfa36113b8662f52837bb713e.tar.gz
bloat-efb0e0417c4b290bfa36113b8662f52837bb713e.zip
Add hashtag search
Diffstat (limited to 'templates')
-rw-r--r--templates/search.tmpl1
-rw-r--r--templates/timeline.tmpl14
2 files changed, 13 insertions, 2 deletions
diff --git a/templates/search.tmpl b/templates/search.tmpl
index 076858e..481f763 100644
--- a/templates/search.tmpl
+++ b/templates/search.tmpl
@@ -12,6 +12,7 @@
<select name="type">
<option value="statuses" {{if eq .Type "statuses"}}selected{{end}}>Statuses</option>
<option value="accounts" {{if eq .Type "accounts"}}selected{{end}}>Accounts</option>
+ <option value="hashtags" {{if eq .Type "hashtags"}}selected{{end}}>Hashtags</option>
</select>
</label>
<button type="submit"> Search </button>
diff --git a/templates/timeline.tmpl b/templates/timeline.tmpl
index b3421ba..eb7571b 100644
--- a/templates/timeline.tmpl
+++ b/templates/timeline.tmpl
@@ -5,8 +5,18 @@
{{if eq .Type "remote"}}
<form action="/timeline/remote" method="GET">
<span>
- <label for="instance"> Instance </label>
- <input type="text" id="instance" name="instance" value="{{.Instance}}">
+ <label for="q"> Instance </label>
+ <input type="text" id="q" name="q" value="{{.Q}}">
+ </span>
+ <button type="submit"> Submit </button>
+</form>
+{{end}}
+
+{{if eq .Type "hashtag"}}
+<form action="/timeline/hashtag" method="GET">
+ <span>
+ <label for="q"> Tag </label>
+ <input type="text" id="q" name="q" value="{{.Q}}">
</span>
<button type="submit"> Submit </button>
</form>