2015-08-05 16:45:16 +05:00
|
|
|
{{!
|
|
|
|
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 )
|
2015-08-05 17:25:33 +05:00
|
|
|
- Navbar ( a function that renders the navbar, should not be escaped )
|
2015-08-05 16:45:16 +05:00
|
|
|
- Threads ( a list of Thread Models with the last few replies )
|
|
|
|
}}
|
2015-08-04 19:03:44 +05:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
2015-11-07 20:37:18 +05:00
|
|
|
<meta name="viewport" content="initial-scale=1" />
|
2015-10-08 20:55:58 +05:00
|
|
|
<link rel="stylesheet" href="{{board.Prefix}}static/site.css" />
|
|
|
|
<link rel="stylesheet" href="{{board.Prefix}}static/user.css" />
|
2015-08-04 19:03:44 +05:00
|
|
|
<title>{{board.Board}}</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2015-08-05 17:25:33 +05:00
|
|
|
<!-- begin navbar -->
|
2015-08-05 16:45:16 +05:00
|
|
|
{{{board.Navbar}}}
|
2015-08-05 17:25:33 +05:00
|
|
|
<!-- end navbar -->
|
2015-08-04 19:03:44 +05:00
|
|
|
|
|
|
|
<!-- postform -->
|
|
|
|
<div id="postform_container">
|
|
|
|
{{{form}}}
|
|
|
|
</div>
|
|
|
|
<hr />
|
2016-01-20 21:58:19 +05:00
|
|
|
<div id="nntpchan_banner">
|
2016-01-20 21:42:18 +05:00
|
|
|
</div>
|
2015-08-04 19:03:44 +05:00
|
|
|
<div id="threads_container">
|
|
|
|
{{#board.Threads}}
|
|
|
|
<div class="thread" id="thread_{{OP.PostHash}}">
|
|
|
|
<div clsss="thread_header">
|
|
|
|
</div>
|
2015-09-05 01:47:52 +05:00
|
|
|
{{{OP.Truncate.RenderPost}}}
|
|
|
|
{{#Truncate.Replies}}
|
|
|
|
{{{Truncate.RenderPost}}}
|
2015-08-04 19:03:44 +05:00
|
|
|
<br />
|
2015-09-05 01:47:52 +05:00
|
|
|
{{/Truncate.Replies}}
|
2015-08-04 19:03:44 +05:00
|
|
|
</div>
|
|
|
|
{{/board.Threads}}
|
|
|
|
</div>
|
2016-01-20 22:08:01 +05:00
|
|
|
<script type="text/javascript" src="{{board.Prefix}}static/nntpchan.js">
|
|
|
|
document.onload = function() {
|
|
|
|
var e = document.getElementById("nntpchan_banner");
|
|
|
|
nntpchan_inject_banners(e, "{{board.Prefix}}");
|
|
|
|
}
|
|
|
|
</script>
|
2015-08-04 19:03:44 +05:00
|
|
|
</body>
|
|
|
|
</html>
|