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/chen-chan/board.mustache

28 lines
821 B
Plaintext
Raw Normal View History

2015-12-23 05:07:29 +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 )
- Navbar ( a function that renders the navbar, should not be escaped )
- Threads ( a list of Thread Models with the last few replies )
}}
2015-12-23 05:33:03 +05:00
<!doctype html><html><head><link rel="stylesheet" href="/static/chen-chan.css"><title>{{board.Board}}</title></head><body>
{{{board.Navbar}}}
{{{form}}}
<dl>
<hr>
2015-12-23 05:07:29 +05:00
{{#board.Threads}}
2015-12-23 05:33:03 +05:00
{{{OP.Truncate.RenderPost}}}
{{#Truncate.Replies}}
{{{Truncate.RenderPost}}}
{{/Truncate.Replies}}
<hr>
2015-12-23 05:07:29 +05:00
{{/board.Threads}}
2015-12-23 05:33:03 +05:00
</dl>
</body></html>