diff options
author | Alan Pearce | 2024-05-07 21:04:13 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-07 21:04:13 +0200 |
commit | 32c4f1ddd704984dad79ad059619b127dcc7de2f (patch) | |
tree | f4d3c1bc0805ca715d54d80c74364d17d02793a2 /frontend/templates | |
parent | 48b22d9ad78e4f3bdb6ca5bbd5ab642b1f991715 (diff) | |
download | searchix-32c4f1ddd704984dad79ad059619b127dcc7de2f.tar.lz searchix-32c4f1ddd704984dad79ad059619b127dcc7de2f.tar.zst searchix-32c4f1ddd704984dad79ad059619b127dcc7de2f.zip |
style: show pages for different sources
Diffstat (limited to 'frontend/templates')
-rw-r--r-- | frontend/templates/blocks/search.gotmpl | 10 | ||||
-rw-r--r-- | frontend/templates/index.gotmpl | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/frontend/templates/blocks/search.gotmpl b/frontend/templates/blocks/search.gotmpl index 5482e6b..b03410c 100644 --- a/frontend/templates/blocks/search.gotmpl +++ b/frontend/templates/blocks/search.gotmpl @@ -2,10 +2,12 @@ {{- template "js" . }} {{- define "main" }} - <label for="query">Search</label> - <form id="search" action="/options/results"> - <input id="query" name="query" type="search" value="{{ .Query }}" /> - <button>Search</button> + <form id="search" action="/options/{{ .Source }}/results"> + <label for="query">{{ sourceName .Source }} option search</label> + <fieldset> + <input id="query" name="query" type="search" value="{{ .Query }}" /> + <button>Search</button> + </fieldset> </form> {{- with .Results }} {{ block "results" . }}{{ end }} diff --git a/frontend/templates/index.gotmpl b/frontend/templates/index.gotmpl index 77e1265..d4a46da 100644 --- a/frontend/templates/index.gotmpl +++ b/frontend/templates/index.gotmpl @@ -12,6 +12,8 @@ <nav> <h1><a href="/">Searchix</a></h1> <a href="/search/nixos">NixOS</a> + <a href="/search/darwin">Darwin</a> + <a href="/search/home-manager">Home Manager</a> </nav> </header> <main> |