From 368a462bc744d8e9084eacfaddeb9afcaf7f7133 Mon Sep 17 00:00:00 2001 From: Samuel Johnson Date: Mon, 24 Nov 2025 13:53:18 -0500 Subject: Add session management --- ui/html/base.tmpl.html | 10 +++++----- ui/html/login.tmpl.html | 19 +++++++++++++++++++ ui/html/pages/index.tmpl.html | 21 ++++++++++++++++++--- 3 files changed, 42 insertions(+), 8 deletions(-) create mode 100644 ui/html/login.tmpl.html (limited to 'ui') diff --git a/ui/html/base.tmpl.html b/ui/html/base.tmpl.html index dda949b..014868e 100644 --- a/ui/html/base.tmpl.html +++ b/ui/html/base.tmpl.html @@ -3,7 +3,7 @@ - + @@ -16,11 +16,11 @@
-

Paterissa

+

Paterissa


diff --git a/ui/html/login.tmpl.html b/ui/html/login.tmpl.html new file mode 100644 index 0000000..6377dc0 --- /dev/null +++ b/ui/html/login.tmpl.html @@ -0,0 +1,19 @@ +{{define "title"}}Login{{end}} + +{{define "main"}} +
+

Log In

+
+
+ +
+{{end}} 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"}} -
-

Blog

-

Home of {{.Name}}

+
+
+

Blog

+

Home of {{.Name}}

+
+
+ {{if .IsAuth}} + Logout + {{else}} + Login + {{end}}
+ {{if .IsAuth}} +
+
+

New

+
+
+ {{end}} {{range .Rows}}
-- cgit v1.2.3