diff options
Diffstat (limited to 'sklad/container.tmpl')
-rw-r--r-- | sklad/container.tmpl | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/sklad/container.tmpl b/sklad/container.tmpl index 341d19b..b261496 100644 --- a/sklad/container.tmpl +++ b/sklad/container.tmpl @@ -1,6 +1,27 @@ {{ define "Title" }}Přehled{{ end }} {{ define "Content" }} -<p>TODO +{{ if .Id }} +<h2>{{ .Id }}</h2> +{{ else }} +<h2>Obaly nejvyšší úrovně</h2> +{{ end }} + +{{ if .Description }} +<p>{{ .Description }} +{{ end }} + +{{ if .Children }} +{{ range .Children }} +<fieldset> +<h3><a href="/container?id={{ .Id }}">{{ .Id }}</a></h3> +{{ if .Description }} +<p>{{ .Description }} +{{ end }} +</fieldset> +{{ end }} +{{ else }} +<p>Obal je prázdný. +{{ end }} {{ end }} |