aboutsummaryrefslogtreecommitdiff
path: root/views/includes/navbar.html
blob: a0db664cb3f1942c7dd16e0f493778edc7c7d23c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{ 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="/new/list">Liste erstellen</a></li>
						<li><a href="/user/{{ .user.ID }}/{{ .user.GetName }}">{{ .user.GetName }}</a></li>
						<li><a href="/logout">Ausloggen</a></li>
						{{ else }}
						<li><a href="/login">Einloggen</a></li>
						<li><a href="/register">Registrieren</a></li>
						{{ end }}
					</ul>
					</div>
				</nav>
{{ end }}