Browse Source

sklad: breadcrumbs for all containers

master
Přemysl Janouch 9 months ago
parent
commit
dc0536c011
Signed by: Přemysl Janouch <p@janouch.name> GPG Key ID: A0420B94F92B9493
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      cmd/sklad/container.tmpl

+ 10
- 2
cmd/sklad/container.tmpl View File

@@ -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>

Loading…
Cancel
Save