diff options
author | rtz12 <koenig@fagott.pw> | 2016-01-17 20:31:26 (UTC) |
---|---|---|
committer | rtz12 <koenig@fagott.pw> | 2016-01-17 20:31:26 (UTC) |
commit | 6cb2de0a1f583ef8d018e430181a7414fa7faff1 (patch) | |
tree | e2c60cc9ae28ef98bcc410e54b99a613b7267831 /views/navbar.html | |
parent | b868b32d348e6350225560b71c8712c2e932b063 (diff) |
Ordnung in die Templates gebracht
Diffstat (limited to 'views/navbar.html')
-rw-r--r-- | views/navbar.html | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/views/navbar.html b/views/navbar.html deleted file mode 100644 index a0db664..0000000 --- a/views/navbar.html +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
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="/new/list">Liste erstellen</a></li> | ||
8 | <li><a href="/user/{{ .user.ID }}/{{ .user.GetName }}">{{ .user.GetName }}</a></li> | ||
9 | <li><a href="/logout">Ausloggen</a></li> | ||
10 | {{ else }} | ||
11 | <li><a href="/login">Einloggen</a></li> | ||
12 | <li><a href="/register">Registrieren</a></li> | ||
13 | {{ end }} | ||
14 | </ul> | ||
15 | </div> | ||
16 | </nav> | ||
17 | {{ end }} \ No newline at end of file | ||