aboutsummaryrefslogtreecommitdiff
path: root/static/main.html
diff options
context:
space:
mode:
authorFChannel <>2022-06-19 12:47:32 -0700
committerFChannel <>2022-06-19 16:03:29 -0700
commitb02f813e519dc890f2eb4827ff52cff3ff90c828 (patch)
treed020fbdefda52542aab3f4250bf93533e9f38504 /static/main.html
parentcd99df8d6781c3f0a191d119ea0ddf8c4a16089f (diff)
v0.1.0
Diffstat (limited to 'static/main.html')
-rw-r--r--static/main.html67
1 files changed, 0 insertions, 67 deletions
diff --git a/static/main.html b/static/main.html
deleted file mode 100644
index 1f7cc2f..0000000
--- a/static/main.html
+++ /dev/null
@@ -1,67 +0,0 @@
-{{ 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">
- {{ if gt (len .ThemeCookie) 0 }}
- <link rel="stylesheet" type="text/css" href="/static/css/themes/{{.ThemeCookie}}.css" title="selected theme">
- {{ else }}
- <link rel="stylesheet" type="text/css" href="/static/css/themes/default.css" title="default">
- {{ end }}
- {{ 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 id="boardlinks">
- {{ $l := len .Boards }}
- <li>[<a href="/">Home</a>]</li>
- {{range $i, $e := .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 .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" . }}
-
- <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>
-
- <div style="float: right;">
- Theme:
- <select id="themeSwitcher" onchange="setTheme(this.options[this.selectedIndex].value)">
- {{ range .Themes }}
- <option value="{{.}}">{{.}}</option>
- {{ end }}
- </select>
- </div>
-
- <script src="/static/js/themes.js"></script>
-{{ template "script" . }}
- </body>
-</html>
-
-{{ end }}