diff options
author | jan <jan@ruken.pw> | 2015-12-26 10:41:42 (UTC) |
---|---|---|
committer | jan <jan@ruken.pw> | 2015-12-26 10:41:42 (UTC) |
commit | 6fabf512767b458a44b4b2547a7b07e9db71c00a (patch) | |
tree | a40522cc0a735d09fd79cca00c8133f41963b7ef /views/navbar.html | |
parent | fb0424cea33e1c48f940c485bff1f4d0aac31dc4 (diff) |
default data im renderer, damit wir später krasse sachen machen können. es gibt jetzt eine globale navbar, damit man nicht mehr den zurückknopf drücken muss, um bis zur startseite zu kommen. ich habe einen großen D.
Diffstat (limited to 'views/navbar.html')
-rw-r--r-- | views/navbar.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/views/navbar.html b/views/navbar.html new file mode 100644 index 0000000..c4bbace --- /dev/null +++ b/views/navbar.html | |||
@@ -0,0 +1,13 @@ | |||
1 | {{ define "navbar" }} | ||
2 | <nav> | ||
3 | <div class="nav-wrapper purple lighten-2"> | ||
4 | <a href="/" class="brand-logo center">grilist</a> | ||
5 | <ul id="nav-mobile" class="right hide-on-med-and-down"> | ||
6 | {{ if .user }} | ||
7 | <li><a href="/">{{ .user.Name }}</a></li> | ||
8 | <li><a href="/logout">Ausloggen</a></li> | ||
9 | {{ end }} | ||
10 | </ul> | ||
11 | </div> | ||
12 | </nav> | ||
13 | {{ end }} \ No newline at end of file | ||