From 62edcb3745f414212ee102c13429056f02cf31bd Mon Sep 17 00:00:00 2001
From: FChannel <>
Date: Mon, 2 May 2022 16:03:32 -0700
Subject: admin login working
---
views/layouts/main.html | 39 ++++++++++++++++++++-------------------
1 file changed, 20 insertions(+), 19 deletions(-)
(limited to 'views/layouts')
diff --git a/views/layouts/main.html b/views/layouts/main.html
index 74b86e4..5bc2ead 100644
--- a/views/layouts/main.html
+++ b/views/layouts/main.html
@@ -37,27 +37,28 @@
{{ end }}
-
- {{ $l := len .page.Boards }}
- - [Home]
- {{range $i, $e := .page.Boards}}
- {{ if eq (sub $l 1) 0 }}
- - [ {{$e.Name}} ]
- {{ else if eq $i 0 }}
- - [{{$e.Name}} /
- {{ else if eq $i (sub $l 1) }}
- - {{$e.Name}}]
- {{ else }}
- - {{$e.Name}} /
+
+
+ {{ $l := len .page.Boards }}
+ - [Home]
+ {{range $i, $e := .page.Boards}}
+ {{ if eq (sub $l 1) 0 }}
+ - [ {{$e.Name}} ]
+ {{ else if eq $i 0 }}
+ - [{{$e.Name}} /
+ {{ else if eq $i (sub $l 1) }}
+ - {{$e.Name}}]
+ {{ else }}
+ - {{$e.Name}} /
+ {{ end }}
+ {{ end }}
+
+ {{ if .page.Board.ModCred }}
+ {{ if eq .page.Board.ModCred .page.Board.Domain .page.Board.Actor.Id }}
+
[Manage Board]
{{ end }}
{{ end }}
-
- {{ if .page.Board.ModCred }}
- {{ if eq .page.Board.ModCred .page.Board.Domain .page.Board.Actor.Id }}
-
[Manage Board]
- {{ end }}
- {{ end }}
-
+
{{ embed }}