blob: 2b708e96194de18d4744b039b48447b71e4e6e43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
{{ define "layout" }}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="keywords" content="Federated Imageboard based on Activtypub">
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
<link rel="icon" type="image/png" href="/static/favicon.png">
<link rel="stylesheet" type="text/css" href="/static/css/themes/default.css" title="default">
{{ range .Themes }}
<link rel="alternate stylesheet" type="text/css" href="/static/css/themes/{{.}}.css" title="{{.}}" disabled>
{{ end }}
{{ template "header" . }}
</head>
<body {{ if not .Board.Restricted }}class="nsfw"{{ end }} onload="applyTheme()">
<ul style="display: inline; padding:0;">
{{ $l := len .Boards }}
<li style="display: inline;">[<a href="/">Home</a>]</li>
{{range $i, $e := .Boards}}
{{ if eq (sub $l 1) 0 }}
<li style="display: inline;">[ <a href="{{.Location}}">{{$e.Name}} </a>]</li>
{{ else if eq $i 0 }}
<li style="display: inline;">[<a href="{{.Location}}">{{$e.Name}} </a>/</li>
{{ else if eq $i (sub $l 1) }}
<li style="display: inline;"><a href="{{.Location}}">{{$e.Name}}</a>]</li>
{{ else }}
<li style="display: inline;"><a href="{{.Location}}">{{$e.Name}} </a>/</li>
{{ end }}
{{end}}
</ul>
{{ if .Board.ModCred }}
{{ if eq .Board.ModCred .Board.Domain .Board.Actor.Id }}
<span style="float: right;"><a href="/{{ .Key }}/{{ .Board.Name }}">[Manage Board]</a></span>
{{ end }}
{{ end }}
{{ template "top" . }}
{{ template "content" . }}
{{ template "bottom" . }}
<br>
<div style="float: right;">
Theme:
<select id="themeSwitcher" onchange="setTheme(this.options[this.selectedIndex].value)">
<option value="default">default</option>
{{ range .Themes }}
<option value="{{.}}">{{.}}</option>
{{ end }}
</select>
</div>
<div align="center" style="width: 500px; margin:0 auto; margin-top: 50px;">
<a href="/">[Home]</a><a href="/static/rules.html">[Rules]</a><a href="/static/faq.html">[FAQ]</a>
<p>All trademarks and copyrights on this page are owned by their respective parties.</p>
</div>
<script src="/static/js/themes.js"></script>
{{ template "script" . }}
</body>
</html>
{{ end }}
|