You've already forked nyx
mirror of
https://github.com/rls-moe/nyx
synced 2025-08-20 12:04:16 +00:00
Resource Fixes
This commit is contained in:
35
http/board/board_res/board.html
Normal file
35
http/board/board_res/board.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<!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>
|
Reference in New Issue
Block a user