sklad: breadcrumbs for all containers

This commit is contained in:
Přemysl Eric Janouch 2019-04-15 02:57:04 +02:00
parent 37b7edb2ef
commit dc0536c011
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 10 additions and 2 deletions

View File

@ -22,7 +22,11 @@
<section> <section>
<header> <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 }}"> <form method=post action="/label?id={{ .Container.Id }}">
<input type=submit value="Vytisknout štítek"> <input type=submit value="Vytisknout štítek">
</form> </form>
@ -90,7 +94,11 @@
{{ range .Children }} {{ range .Children }}
<section> <section>
<header> <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 }}"> <form method=post action="/label?id={{ .Id }}">
<input type=submit value="Vytisknout štítek"> <input type=submit value="Vytisknout štítek">
</form> </form>