diff options
author | Přemysl Janouch <p@janouch.name> | 2019-04-15 02:57:04 +0200 |
---|---|---|
committer | Přemysl Janouch <p@janouch.name> | 2019-04-15 02:57:04 +0200 |
commit | dc0536c011d2a74dc49f66eceeac26d63e1b6fd0 (patch) | |
tree | 6a904603b80e58b1104eaf907a028bb98a7d982b | |
parent | 37b7edb2efa819fe8b093157e9b26f671f390f95 (diff) | |
download | sklad-dc0536c011d2a74dc49f66eceeac26d63e1b6fd0.tar.gz sklad-dc0536c011d2a74dc49f66eceeac26d63e1b6fd0.tar.xz sklad-dc0536c011d2a74dc49f66eceeac26d63e1b6fd0.zip |
sklad: breadcrumbs for all containers
-rw-r--r-- | cmd/sklad/container.tmpl | 12 |
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>« <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>« <a href="/?id={{ . }}">{{ . }}</a></small> +{{ end }} + </h3> <form method=post action="/label?id={{ .Id }}"> <input type=submit value="Vytisknout štítek"> </form> |