51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
{{!
|
|
board.mustache, displays the contents of page N of the board
|
|
|
|
template parameters:
|
|
- board ( the model of the current page )
|
|
- page ( the page number of the current page )
|
|
|
|
board has the properties:
|
|
- Prefix ( absolute path like //site.tld/ or /path/ )
|
|
- Board ( the name of the board )
|
|
- Navbar ( a function that renders the navbar, should not be escaped )
|
|
- Threads ( a list of Thread Models with the last few replies )
|
|
}}
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="initial-scale=1" />
|
|
<link rel="stylesheet" href="{{board.Prefix}}static/site.css" />
|
|
<link rel="stylesheet" href="{{board.Prefix}}static/user.css" />
|
|
<script type="text/javascript" src="{{board.Prefix}}static/nntpchan.js"></script>
|
|
<title>{{board.Board}}</title>
|
|
</head>
|
|
<body>
|
|
<!-- begin navbar -->
|
|
{{{board.Navbar}}}
|
|
<!-- end navbar -->
|
|
|
|
<!-- postform -->
|
|
<div id="postform_container">
|
|
{{{form}}}
|
|
</div>
|
|
<hr />
|
|
<div id="nntpchan_banner">
|
|
[banner]
|
|
</div>
|
|
<div id="threads_container">
|
|
{{#board.Threads}}
|
|
<div class="thread" id="thread_{{OP.PostHash}}">
|
|
<div clsss="thread_header">
|
|
</div>
|
|
{{{OP.Truncate.RenderPost}}}
|
|
{{#Truncate.Replies}}
|
|
{{{Truncate.RenderPost}}}
|
|
<br />
|
|
{{/Truncate.Replies}}
|
|
</div>
|
|
{{/board.Threads}}
|
|
</div>
|
|
</body>
|
|
</html>
|