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

48 lines
1.4 KiB
Plaintext
Raw Normal View History

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>
2015-12-23 05:07:29 +05:00
<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>
2015-08-04 19:03:44 +05:00
<title>{{board.Board}}</title>
</head>
<body>
2015-12-23 05:07:29 +05:00
<!-- begin navbar -->
2015-08-05 16:45:16 +05:00
{{{board.Navbar}}}
2015-12-23 05:07:29 +05:00
<!-- end navbar -->
<!-- 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.Truncate.RenderPost}}}
{{#Truncate.Replies}}
{{{Truncate.RenderPost}}}
<br />
{{/Truncate.Replies}}
</div>
{{/board.Threads}}
</div>
2015-08-04 19:03:44 +05:00
</body>
</html>