projects
/
kraftakt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e9db24
)
templates/navbar.html: Fix template syntax.
author
Florian Forster
<ff@octo.it>
Tue, 30 Jan 2018 08:57:49 +0000
(09:57 +0100)
committer
Florian Forster
<ff@octo.it>
Tue, 30 Jan 2018 08:57:49 +0000
(09:57 +0100)
templates/navbar.html
patch
|
blob
|
history
diff --git
a/templates/navbar.html
b/templates/navbar.html
index
a361d83
..
e795033
100644
(file)
--- a/
templates/navbar.html
+++ b/
templates/navbar.html
@@
-1,11
+1,11
@@
<div class="navbar heading">
<div class="right">
-{{if .User == nil}}
- <a href="/login" class="button flat">Login</a>
-{{else}}
+{{if .User}}
<div class="button flat">
{{.User}}
</div>
+{{else}}
+ <a href="/login" class="button flat">Login</a>
{{end}}
</div>
<div class="clear"></div>