aboutsummaryrefslogtreecommitdiff
path: root/ui/html/pages
diff options
context:
space:
mode:
Diffstat (limited to 'ui/html/pages')
-rw-r--r--ui/html/pages/index.tmpl.html21
1 files changed, 18 insertions, 3 deletions
diff --git a/ui/html/pages/index.tmpl.html b/ui/html/pages/index.tmpl.html
index 78c2bb2..011f964 100644
--- a/ui/html/pages/index.tmpl.html
+++ b/ui/html/pages/index.tmpl.html
@@ -1,10 +1,25 @@
{{define "title"}}Blog{{end}}
{{define "main"}}
- <div class="topline">
- <h2>Blog</h2>
- <p>Home of {{.Name}}</p>
+ <div class="flex-between">
+ <div class="topline">
+ <h2>Blog</h2>
+ <p>Home of {{.Name}}</p>
+ </div>
+ <div class="spacer"></div>
+ {{if .IsAuth}}
+ <a href="/logout" class="nav_tag right">Logout</a>
+ {{else}}
+ <a href="/login" class="nav_tag right">Login</a>
+ {{end}}
</div>
+ {{if .IsAuth}}
+ <div class="card">
+ <div class="header">
+ <h4><b>New</b></h4>
+ </div>
+ </div>
+ {{end}}
{{range .Rows}}
<div class="card">
<div class="header">