aboutsummaryrefslogtreecommitdiff
path: root/cmd/sklad/search.tmpl
blob: b7a890edf180d7225e1a7c7a63c889cb4646e51d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 | highlight $.Query }}
	</header>
</section>
{{ else }}
<p>Neodpovídají žádné řady.
{{ end }}

<h3>Obaly</h3>

{{ range .Containers }}
<section>
	<header>
		<h3><a href="container?id={{ .Id }}">{{ .Id }}</a>
		{{- range .Path }}
		<small>&laquo; <a href="container?id={{ . }}">{{ . }}</a></small>
		{{- end }}
		</h3>
	</header>
	{{- if .Description }}
	<p>{{ .Description | highlight $.Query }}
	{{- end }}
</section>
{{ else }}
<p>Neodpovídají žádné obaly.
{{ end }}

{{ end }}