templates/navbar.html: Fix template syntax.
authorFlorian Forster <ff@octo.it>
Tue, 30 Jan 2018 08:57:49 +0000 (09:57 +0100)
committerFlorian Forster <ff@octo.it>
Tue, 30 Jan 2018 08:57:49 +0000 (09:57 +0100)
templates/navbar.html

index a361d83..e795033 100644 (file)
@@ -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>