From 3d98454543f4494fd267e851b48d58a05aea11dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sun, 14 Apr 2019 19:12:31 +0200 Subject: sklad: cleanup, add comment Child containers now show a linear list of subcontainers. --- sklad/container.tmpl | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'sklad/container.tmpl') diff --git a/sklad/container.tmpl b/sklad/container.tmpl index cbc8ea4..4bacae8 100644 --- a/sklad/container.tmpl +++ b/sklad/container.tmpl @@ -1,22 +1,23 @@ -{{ define "Title" }}{{ or .Id "Obaly" }}{{ end }} +{{ define "Title" }}{{/* +*/}}{{ if .Container }}{{ .Container.Id }}{{ else }}Obaly{{ end }}{{ end }} {{ define "Content" }} -{{ if .Id }} +{{ if .Container }}
-

{{ .Id }}

-
+

{{ .Container.Id }}

+
-
+
-
+
@@ -24,14 +25,14 @@
- +
@@ -54,7 +55,6 @@ @@ -74,7 +74,7 @@ {{ range .Children }}
-

{{ .Id }}

+

{{ .Id }}

@@ -85,6 +85,12 @@ {{ if .Description }}

{{ .Description }} {{ end }} +{{ if .Children }} +

+{{ range .Children }} +{{ .Id }} +{{ end }} +{{ end }}

{{ else }}

Obal je prázdný. -- cgit v1.2.3