aboutsummaryrefslogtreecommitdiff
path: root/views/navbar.html
diff options
context:
space:
mode:
Diffstat (limited to 'views/navbar.html')
-rw-r--r--views/navbar.html13
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