diff options
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> |