all repos — searchix @ 32c4f1ddd704984dad79ad059619b127dcc7de2f

Search engine for NixOS, nix-darwin, home-manager and NUR users

style: show pages for different sources

Alan Pearce
commit

32c4f1ddd704984dad79ad059619b127dcc7de2f

parent

48b22d9ad78e4f3bdb6ca5bbd5ab642b1f991715

1 file changed, 6 insertions(+), 4 deletions(-)

changed files
M frontend/templates/blocks/search.gotmplfrontend/templates/blocks/search.gotmpl
@@ -2,10 +2,12 @@ {{- template "main" . }}
{{- 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 }}