aboutsummaryrefslogtreecommitdiff
path: root/views/layouts/main.html
diff options
context:
space:
mode:
authorFChannel <>2022-05-02 16:03:32 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit62edcb3745f414212ee102c13429056f02cf31bd (patch)
tree2001bfbfb562d99866ea46faec7f838ec1dc2864 /views/layouts/main.html
parent1ee6552559141dd5dba91abec7c81d68c56abda0 (diff)
admin login working
Diffstat (limited to 'views/layouts/main.html')
-rw-r--r--views/layouts/main.html39
1 files changed, 20 insertions, 19 deletions
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 }}
</head>
<body {{ if not .page.Board.Restricted }}class="nsfw"{{ end }} onload="applyTheme()">
- <ul id="boardlinks">
- {{ $l := len .page.Boards }}
- <li>[<a href="/">Home</a>]</li>
- {{range $i, $e := .page.Boards}}
- {{ if eq (sub $l 1) 0 }}
- <li>[ <a href="{{.Location}}">{{$e.Name}} </a>]</li>
- {{ else if eq $i 0 }}
- <li>[<a href="{{.Location}}">{{$e.Name}} </a>/</li>
- {{ else if eq $i (sub $l 1) }}
- <li><a href="{{.Location}}">{{$e.Name}}</a>]</li>
- {{ else }}
- <li><a href="{{.Location}}">{{$e.Name}} </a>/</li>
+ <div style="padding-bottom:5px;">
+ <ul id="boardlinks">
+ {{ $l := len .page.Boards }}
+ <li>[<a href="/">Home</a>]</li>
+ {{range $i, $e := .page.Boards}}
+ {{ if eq (sub $l 1) 0 }}
+ <li>[ <a href="{{.Location}}">{{$e.Name}} </a>]</li>
+ {{ else if eq $i 0 }}
+ <li>[<a href="{{.Location}}">{{$e.Name}} </a>/</li>
+ {{ else if eq $i (sub $l 1) }}
+ <li><a href="{{.Location}}">{{$e.Name}}</a>]</li>
+ {{ else }}
+ <li><a href="{{.Location}}">{{$e.Name}} </a>/</li>
+ {{ end }}
+ {{ end }}
+ </ul>
+ {{ if .page.Board.ModCred }}
+ {{ if eq .page.Board.ModCred .page.Board.Domain .page.Board.Actor.Id }}
+ <span id="manageboard">[<a href="/{{ .page.Key }}/{{ .page.Board.Name }}">Manage Board</a>]</span>
{{ end }}
{{ end }}
- </ul>
- {{ if .page.Board.ModCred }}
- {{ if eq .page.Board.ModCred .page.Board.Domain .page.Board.Actor.Id }}
- <span style="float: right;">[<a href="/{{ .page.Key }}/{{ .page.Board.Name }}">Manage Board</a>]</span>
- {{ end }}
- {{ end }}
-
+ </div>
{{ embed }}
</body>
</html>