diff options
author | r <r@freesoftwareextremist.com> | 2024-06-17 14:48:13 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2024-06-17 14:48:13 +0000 |
commit | efb0e0417c4b290bfa36113b8662f52837bb713e (patch) | |
tree | d11bd031325c052a52fbf3acc70ed34e252f1797 /templates | |
parent | e46d067866d3345d9e160fa50fd16af5430e2418 (diff) | |
download | bloat-efb0e0417c4b290bfa36113b8662f52837bb713e.tar.gz bloat-efb0e0417c4b290bfa36113b8662f52837bb713e.zip |
Add hashtag search
Diffstat (limited to 'templates')
-rw-r--r-- | templates/search.tmpl | 1 | ||||
-rw-r--r-- | templates/timeline.tmpl | 14 |
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> |