diff options
author | Alan Pearce | 2024-06-08 20:34:37 +0200 |
---|---|---|
committer | Alan Pearce | 2024-06-08 20:42:48 +0200 |
commit | 408aed03d3454330120475ca53838a2f4fe28ea3 (patch) | |
tree | 78d0bb27634154a4ac956c851ea12b71db9ac6b9 /frontend/templates/blocks/results.gotmpl | |
parent | d40c0e188a7fe1b36887f59c4a9958faa81b3d44 (diff) | |
download | searchix-408aed03d3454330120475ca53838a2f4fe28ea3.tar.lz searchix-408aed03d3454330120475ca53838a2f4fe28ea3.tar.zst searchix-408aed03d3454330120475ca53838a2f4fe28ea3.zip |
feat: display results in a table, showing details on click
Diffstat (limited to 'frontend/templates/blocks/results.gotmpl')
-rw-r--r-- | frontend/templates/blocks/results.gotmpl | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/frontend/templates/blocks/results.gotmpl b/frontend/templates/blocks/results.gotmpl index c375156..ef6e1f1 100644 --- a/frontend/templates/blocks/results.gotmpl +++ b/frontend/templates/blocks/results.gotmpl @@ -1,21 +1,19 @@ {{- define "results" }} {{- with .Results }} {{- if gt .Total 0 }} - <section id="results" role="list" aria-label="search results"> - {{ block "hits" .Hits }} - {{ end }} - <footer aria-label="pagination"> - <nav id="pagination"> - {{- with $.Prev }} - <a class="button" href="{{ . }}" rel="prev">Prev</a> - {{- end }} - {{- with $.Next }} - <a class="button" href="{{ . }}" rel="next">Next</a> - {{- end }} - </nav> - <span role="status">{{ .Total }} results</span> - </footer> - </section> + {{ block "hits" .Hits }} + {{ end }} + <footer aria-label="pagination"> + <nav id="pagination"> + {{- with $.Prev }} + <a class="button" href="{{ . }}" rel="prev">Prev</a> + {{- end }} + {{- with $.Next }} + <a class="button" href="{{ . }}" rel="next">Next</a> + {{- end }} + </nav> + <span role="status">{{ .Total }} results</span> + </footer> {{- else }} <span role="status">Nothing found</span> {{- end }} |