mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-24 08:46:24 -07:00
27 lines
No EOL
1.4 KiB
HTML
27 lines
No EOL
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
{{with .board -}}
|
|
{{with $.op -}}
|
|
{{if ne $.op.Subject "" -}}<title>/{{$.board.Dir}}/ - {{truncateString $.op.Subject 20 true}}</title>
|
|
{{- else if ne $.op.MessageHTML "" -}}<title>/{{$.board.Dir}}/ - {{truncateString $.op.MessageText 20 true}}</title>
|
|
{{- else}}<title>/{{$.board.Dir}}/ - #{{$.op.ID}}</title>{{end}}
|
|
{{- else}}<title>/{{$.board.Dir}}/ - {{$.board.Title}}</title>{{end}}
|
|
{{- else}}<title>{{with $.page_title}}{{$.page_title}} - {{end}}{{.site_config.SiteName}}</title>{{end}}
|
|
<link rel="stylesheet" href="{{.webroot}}css/global.css" />
|
|
<link id="theme" rel="stylesheet" href="{{.webroot}}css/{{.board_config.DefaultStyle}}" />
|
|
<link rel="shortcut icon" href="{{.webroot}}favicon.png">
|
|
<script type="text/javascript" src="{{.webroot}}js/consts.js"></script>
|
|
<script type="text/javascript" src="{{.webroot}}js/gochan.js"></script>
|
|
</head>
|
|
<body>
|
|
<div id="topbar">
|
|
<a href="{{$.webroot}}" class="topbar-item">home</a>
|
|
{{range $i, $board := .boards}}<a href="{{$.webroot}}{{$board.Dir}}/" class="topbar-item" title="{{$board.Title}}">/{{$board.Dir}}/</a>{{end}}
|
|
</div>
|
|
<div id="content">
|
|
{{with $.page_title }}<br /><h1>{{$.page_title}}</h1>
|
|
{{with $.include_dashboard_link}}<a href="{{$.webroot}}manage">Return to dashboard</a><br/>{{end}}
|
|
{{end}} |