aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2019-04-15 02:57:04 +0200
committerPřemysl Janouch <p@janouch.name>2019-04-15 02:57:04 +0200
commitdc0536c011d2a74dc49f66eceeac26d63e1b6fd0 (patch)
tree6a904603b80e58b1104eaf907a028bb98a7d982b /cmd
parent37b7edb2efa819fe8b093157e9b26f671f390f95 (diff)
downloadsklad-dc0536c011d2a74dc49f66eceeac26d63e1b6fd0.tar.gz
sklad-dc0536c011d2a74dc49f66eceeac26d63e1b6fd0.tar.xz
sklad-dc0536c011d2a74dc49f66eceeac26d63e1b6fd0.zip
sklad: breadcrumbs for all containers
Diffstat (limited to 'cmd')
-rw-r--r--cmd/sklad/container.tmpl12
1 files changed, 10 insertions, 2 deletions
diff --git a/cmd/sklad/container.tmpl b/cmd/sklad/container.tmpl
index 5bb5123..3300a1f 100644
--- a/cmd/sklad/container.tmpl
+++ b/cmd/sklad/container.tmpl
@@ -22,7 +22,11 @@
<section>
<header>
- <h2>{{ .Container.Id }}</h2>
+ <h2>{{ .Container.Id }}
+{{ range .Container.Path }}
+ <small>&laquo; <a href="/?id={{ . }}">{{ . }}</a></small>
+{{ end }}
+ </h2>
<form method=post action="/label?id={{ .Container.Id }}">
<input type=submit value="Vytisknout štítek">
</form>
@@ -90,7 +94,11 @@
{{ range .Children }}
<section>
<header>
- <h3><a href="/?id={{ .Id }}">{{ .Id }}</a></h3>
+ <h3><a href="/?id={{ .Id }}">{{ .Id }}</a>
+{{ range .Path }}
+ <small>&laquo; <a href="/?id={{ . }}">{{ . }}</a></small>
+{{ end }}
+ </h3>
<form method=post action="/label?id={{ .Id }}">
<input type=submit value="Vytisknout štítek">
</form>