diff options
author | Přemysl Janouch <p@janouch.name> | 2019-04-16 03:56:53 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2019-04-16 03:56:53 +0200 |
commit | 21d01f4c4b10f82c65dccfba22f825640610d66e (patch) | |
tree | 2f289d03c50fa9b01d2dac080be8e70ef8a9940b /cmd/sklad/search.tmpl | |
parent | 885d161cf5f1baed291cc1d31ea9e90868492567 (diff) | |
download | sklad-21d01f4c4b10f82c65dccfba22f825640610d66e.tar.gz sklad-21d01f4c4b10f82c65dccfba22f825640610d66e.tar.xz sklad-21d01f4c4b10f82c65dccfba22f825640610d66e.zip |
sklad: clean up templates
Diffstat (limited to 'cmd/sklad/search.tmpl')
-rw-r--r-- | cmd/sklad/search.tmpl | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/cmd/sklad/search.tmpl b/cmd/sklad/search.tmpl index 9fef455..0c58bf9 100644 --- a/cmd/sklad/search.tmpl +++ b/cmd/sklad/search.tmpl @@ -1,16 +1,16 @@ {{ define "Title" }}„{{ .Query }}“ — Vyhledávání{{ end }} {{ define "Content" }} -<h2>Vyhledávání: „{{ .Query }}“<h2> +<h2>Vyhledávání: „{{ .Query }}“</h2> <h3>Řady</h3> {{ range .Series }} <section> -<header> - <h3><a href="series?prefix={{ .Prefix }}">{{ .Prefix }}</a></h3> - <p>{{ .Description }} -</header> + <header> + <h3><a href="series?prefix={{ .Prefix }}">{{ .Prefix }}</a></h3> + <p>{{ .Description }} + </header> </section> {{ else }} <p>Neodpovídají žádné řady. @@ -20,16 +20,16 @@ {{ range .Containers }} <section> -<header> - <h3><a href="container?id={{ .Id }}">{{ .Id }}</a> -{{ range .Path }} - <small>« <a href="container?id={{ . }}">{{ . }}</a></small> -{{ end }} - </h3> -</header> -{{ if .Description }} -<p>{{ .Description }} -{{ end }} + <header> + <h3><a href="container?id={{ .Id }}">{{ .Id }}</a> + {{- range .Path }} + <small>« <a href="container?id={{ . }}">{{ . }}</a></small> + {{- end }} + </h3> + </header> + {{- if .Description }} + <p>{{ .Description }} + {{- end }} </section> {{ else }} <p>Neodpovídají žádné obaly. |