Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/contrib/templates/default/board.mustache
2015-08-05 07:45:16 -04:00

48 lines
1.2 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 )
- Navar ( 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" />
<script type="text/javascript" src="{{board.Prefix}}static/captcha.js"></script>
<link rel="stylesheet" href="{{board.Prefix}}static/site.css"></link>
<title>{{board.Board}}</title>
</head>
<body>
<!-- begin header -->
{{{board.Navbar}}}
<!-- end header -->
<!-- postform -->
<div id="postform_container">
{{{form}}}
</div>
<hr />
<div id="threads_container">
{{#board.Threads}}
<div class="thread" id="thread_{{OP.PostHash}}">
<div clsss="thread_header">
</div>
{{{OP.RenderPost}}}
{{#Replies}}
{{{RenderPost}}}
<br />
{{/Replies}}
</div>
<br/>
<hr/>
{{/board.Threads}}
</div>
</body>
</html>