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

90 lines
3.1 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 )
}}
2016-04-29 23:08:02 +05:00
<!doctype html>
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" />
2016-03-08 06:25:29 +05:00
<link id="current_theme" rel="stylesheet" href="{{board.Prefix}}static/user.css" />
2016-01-20 22:16:30 +05:00
<script type="text/javascript" src="{{board.Prefix}}static/nntpchan.js"></script>
2015-08-04 19:03:44 +05:00
<title>{{board.Board}}</title>
</head>
2016-04-26 00:57:49 +05:00
<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 -->
2016-01-20 22:18:22 +05:00
<center>
<div id="nntpchan_banner">
</div>
</center>
2016-02-17 19:31:28 +05:00
<div class="board_header">{{board.Board}}</div>
2016-02-28 17:40:16 +05:00
<div class="board_header_catalog"><a href="{{board.Prefix}}catalog-{{board.Name}}.html"> {{#i18n.Translations}}{{catalog_label}}{{/i18n.Translations}} </a></div>
2015-08-04 19:03:44 +05:00
<!-- postform -->
<div id="postform_container">
2016-02-22 03:08:38 +05:00
{{{form}}}
2015-08-04 19:03:44 +05:00
</div>
<hr />
<div id="threads_container">
{{#board.Threads}}
<div class="thread" id="thread_{{OP.PostHash}}">
<div class="truncated_post">
{{{OP.RenderTruncatedPost}}}
2016-11-03 00:23:23 +05:00
<div class="thread_header">
<span class="thread_posts">
{{PostCount}} posts
</span>
<span class="thread_images">
{{ImageCount}} images
</span>
</div>
{{#Truncate}}
2016-11-03 01:05:50 +05:00
<div class="thread_exclude_info">
<span class="thread_exclude_posts">{{MissingPostCount}} posts excluded</span>
<span class="thread_exclude_images">{{MissingImageCount}} images excluded</span>
</div>
2016-11-03 00:54:27 +05:00
</div>
2016-11-03 01:05:50 +05:00
{{#Replies}}
<div class="truncated_post">
{{{RenderTruncatedPost}}}
</div>
{{/Replies}}
{{/Truncate}}
2016-02-15 22:26:30 +05:00
<hr />
2015-08-04 19:03:44 +05:00
</div>
{{/board.Threads}}
</div>
2016-02-19 20:48:41 +05:00
<div class="pagelist">{{# board.PageList }}[<a href="{{LinkURL}}"> {{Text}} </a>] {{/ board.PageList }}
<span class="navbar-sep">
|
</span>
2016-02-28 17:40:16 +05:00
<a href="{{board.Prefix}}catalog-{{board.Name}}.html"> {{#i18n.Translations}}{{catalog_label}}{{/i18n.Translations}} </a>
2016-02-19 20:48:41 +05:00
</div>
2016-01-20 22:16:30 +05:00
<script type="text/javascript">
2016-04-26 00:57:49 +05:00
var prefix = "{{board.Prefix}}";
2016-01-20 22:08:01 +05:00
var e = document.getElementById("nntpchan_banner");
2016-04-26 00:57:49 +05:00
nntpchan_inject_banners(e, prefix);
init(prefix);
2016-04-27 18:36:57 +05:00
ready();
2016-01-20 22:08:01 +05:00
</script>
<hr/>
2016-02-18 00:13:58 +05:00
<footer>
<p class="legal">All posts on this site are the responsibility of the individual poster and not the administration, pursuant to 47 U.S.C. § 230.</p>
<p class="legal">To make a DMCA request or report illegal content, please contact the administration</p>
</footer>
2015-08-04 19:03:44 +05:00
</body>
</html>