aboutsummaryrefslogtreecommitdiff
path: root/cmd/sklad/search.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/sklad/search.tmpl')
-rw-r--r--cmd/sklad/search.tmpl38
1 files changed, 38 insertions, 0 deletions
diff --git a/cmd/sklad/search.tmpl b/cmd/sklad/search.tmpl
new file mode 100644
index 0000000..cf704cf
--- /dev/null
+++ b/cmd/sklad/search.tmpl
@@ -0,0 +1,38 @@
+{{ define "Title" }}„{{ .Query }}“ — Vyhledávání{{ end }}
+{{ define "Content" }}
+
+<h2>Vyhledávání: &bdquo;{{ .Query }}&ldquo;<h2>
+
+<h3>Řady</h3>
+
+{{ range .Series }}
+<section>
+<header>
+ <h3><a href="/series?prefix={{ .Prefix }}">{{ .Prefix }}</a></h3>
+ <p>{{ .Description }}
+</header>
+</section>
+{{ else }}
+<p>Neodpovídají žádné řady.
+{{ end }}
+
+<h3>Obaly</h3>
+
+{{ range .Containers }}
+<section>
+<header>
+ <h3><a href="/?id={{ .Id }}">{{ .Id }}</a>
+{{ range .Path }}
+ <small>&laquo; <a href="/?id={{ . }}">{{ . }}</a></small>
+{{ end }}
+ </h3>
+</header>
+{{ if .Description }}
+<p>{{ .Description }}
+{{ end }}
+</section>
+{{ else }}
+<p>Neodpovídají žádné obaly.
+{{ end }}
+
+{{ end }}