aboutsummaryrefslogtreecommitdiff
path: root/views/navbar.html
blob: c4bbace3631bff505d72c07f0e5c1d8c8cd75d3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{{ define "navbar" }}
				<nav>
					<div class="nav-wrapper purple lighten-2">
					<a href="/" class="brand-logo center">grilist</a>
					<ul id="nav-mobile" class="right hide-on-med-and-down">
						{{ if .user }}
						<li><a href="/">{{ .user.Name }}</a></li>
						<li><a href="/logout">Ausloggen</a></li>
						{{ end }}
					</ul>
					</div>
				</nav>
{{ end }}