mirror of
https://github.com/rls-moe/nyx
synced 2024-11-22 22:12:24 +00:00
35 lines
1.1 KiB
HTML
35 lines
1.1 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{.Config.Site.Title}} - /{{.Board.ShortName}}/</title>
|
|
<link rel="stylesheet" href="/@/style.css">
|
|
<link rel="stylesheet" href="/@/custom.css">
|
|
</head>
|
|
<body>
|
|
<div class="banner logo">
|
|
<div class="site title"><h1><span class="reflink"><a href="/{{.Board.ShortName}}/board.html">/{{.Board.ShortName}}/</a></span></h1></div>
|
|
<div class="site description"><h2>{{.Board.LongName}}</h2></div>
|
|
</div>
|
|
{{ $boardlink := .Board.ShortName }}
|
|
{{ if .Session }}
|
|
{{ if eq (.Session.CAttr "mode") "admin" }}
|
|
Logged in as Admin
|
|
{{ end }}
|
|
{{ if eq (.Session.CAttr "mode") "mod" }}
|
|
Logged in as Mod for {{ .Session.CAttr "board" }}
|
|
{{ end }}
|
|
{{ end }}
|
|
<hr />
|
|
{{ template "thread/post" . }}
|
|
<div class="postlists">
|
|
{{ $board := .Board }}
|
|
{{ $csrf := .CSRFToken }}
|
|
{{ $session := .Session }}
|
|
{{range .Threads}}
|
|
{{ template "thread/postlists" dict "Thread" . "Board" $board "CSRFToken" $csrf "Session" $session }}
|
|
{{end}}
|
|
</div>
|
|
</body>
|
|
</html> |