mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-09-03 05:16:24 -07:00
46 lines
No EOL
1.8 KiB
HTML
46 lines
No EOL
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{with .ban -}}
|
|
{{if .BannedForever}}YOU'RE PERMABANNED, IDIOT!{{else}}YOU ARE BANNED :({{end}}
|
|
{{- else -}}
|
|
{{- with .board -}}
|
|
{{- with $.op}}{{.TitleText}}{{else}}/{{$.board.Dir}}/ - {{$.board.Title}}{{end -}}
|
|
{{- else -}}
|
|
{{- with $.documentTitle}}{{.}}{{- else -}}
|
|
{{- with $.pageTitle -}}{{$.pageTitle}} - {{$.siteConfig.SiteName}}
|
|
{{else}}{{$.siteConfig.SiteName}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end}}</title>
|
|
<link rel="stylesheet" href="{{webPath `/css/global.css`}}" />
|
|
{{range $_, $style := $.boardConfig.IncludeGlobalStyles -}}
|
|
<link rel="stylesheet" href="{{webPath `/css/` $style}}" />
|
|
{{- end -}}
|
|
{{with .board -}}
|
|
<link id="theme" rel="stylesheet" href="{{webPath `/css/` (getBoardDefaultStyle $.board.Dir)}}" />
|
|
{{- else -}}
|
|
<link id="theme" rel="stylesheet" href="{{webPath `/css/` .boardConfig.DefaultStyle}}" />
|
|
{{- end}}
|
|
<link rel="shortcut icon" href="{{webPath `/favicon.png`}}">
|
|
{{- if .boardConfig.EnableGeoIP -}}
|
|
<link id="flags" rel="stylesheet" href="{{webPath `/css/flags.css`}}"/>
|
|
{{- end -}}
|
|
<script type="text/javascript" src="{{webPath `/js/consts.js`}}"></script>
|
|
<script type="text/javascript" src="{{webPath `/js/gochan.js`}}" defer></script>
|
|
{{- range $_, $script := $.boardConfig.IncludeScripts -}}
|
|
<script src="{{$script.Location}}" {{if $script.Defer}}defer{{end}}></script>
|
|
{{- end -}}
|
|
</head>
|
|
<body>
|
|
{{template "topbar" .}}
|
|
{{with $.pageTitle -}}<header>
|
|
<h1 id="board-title">{{$.pageTitle}}</h1>
|
|
{{with $.includeDashboardLink -}}
|
|
<a href="{{webPath `/manage`}}" class="board-subtitle">Return to dashboard</a><br/>
|
|
{{- end}}
|
|
</header>{{end}}
|
|
<div id="content"> |