From 3d98454543f4494fd267e851b48d58a05aea11dc Mon Sep 17 00:00:00 2001 From: Přemysl Janouch
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 +++++++++++++++++-----------
sklad/db.go | 9 +++++++--
sklad/main.go | 36 +++++++++++++-----------------------
3 files changed, 37 insertions(+), 36 deletions(-)
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 }}
-
-