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/thread.mustache

63 lines
2.7 KiB
Plaintext
Raw Normal View History

2015-08-05 07:45:16 -04:00
{{!
thread.mustache -- renders to a thread-*.html page, shows the entire thread
template parameters:
- board ( the Board Model of the board this thread was posted in )
- thread ( the Thread Model of the current thread being rendered )
Thread Model attributes:
- OP , the Post Model of the original poster
- Replies , a list of all the replies or empty if none
- Board , the name of the Board this thread is on
- BoardURL , the url that points to the board index page
}}
2016-04-29 14:08:02 -04:00
<!doctype html>
2017-10-17 07:59:07 -04:00
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{i18n.Name}}" xml:lang="{{i18n.Name}}">
2015-08-04 10:03:44 -04:00
<head>
<meta charset="utf-8" />
2015-11-07 10:37:18 -05:00
<meta name="viewport" content="initial-scale=1" />
2017-03-20 19:57:18 -04:00
<meta http-equiv="pragma" content="no-cache" />
2015-10-08 11:55:58 -04:00
<link rel="stylesheet" href="{{thread.Prefix}}static/site.css" />
2017-01-28 12:06:23 -05:00
<link rel="stylesheet" href="{{thread.Prefix}}static/user.css" />
2016-03-07 20:25:29 -05:00
<link id="current_theme" rel="stylesheet" href="{{thread.Prefix}}static/user.css" />
2016-01-20 12:16:30 -05:00
<script src="{{thread.Prefix}}static/nntpchan.js" type="text/javascript"></script>
2015-08-04 10:03:44 -04:00
<title> {{thread.OP.Subject}} </title>
</head>
2016-04-25 15:57:49 -04:00
<body>
2015-08-05 07:45:16 -04:00
<!-- begin navbar -->
{{{thread.Navbar}}}
<!-- end navbar -->
2016-01-20 12:18:04 -05:00
<center>
<div id="nntpchan_banner">
</div>
</center>
2016-02-17 15:31:28 +01:00
<div class="board_header">{{thread.Board}}</div>
2015-08-04 10:03:44 -04:00
<!-- postform -->
<div id="postform_container">
2016-02-21 17:08:38 -05:00
{{{form}}}
2015-08-04 10:03:44 -04:00
</div>
<hr />
<div class="thread" id="thread_{{thread.OP.PostHash}}">
<div class="thread_header">
</div>
{{{thread.OP.RenderPost}}}
2015-08-05 07:45:16 -04:00
{{# thread.Replies}}
2015-08-04 10:03:44 -04:00
{{{RenderPost}}}
2015-08-05 07:45:16 -04:00
{{/ thread.Replies}}
2015-08-04 10:03:44 -04:00
</div>
2016-02-17 10:53:20 +01:00
<hr/>
2016-02-28 13:40:16 +01:00
<div class="navLinks">[<a href="{{thread.BoardURL}}" accesskey="a">{{#i18n.Translations}}{{return}}{{/i18n.Translations}}</a>] [<a href="{{thread.Prefix}}catalog-{{thread.Board}}.html" accesskey="r">{{#i18n.Translations}}{{catalog_label}}{{/i18n.Translations}}</a>] [<a href="#thread_{{thread.OP.PostHash}}">{{#i18n.Translations}}{{to_top_label}}{{/i18n.Translations}}</a>] [<a href="#navlinks" accesskey="r" onclick="location.reload();">{{#i18n.Translations}}{{update}}{{/i18n.Translations}}</a>]</div>
2016-01-20 12:16:30 -05:00
<script type="text/javascript">
2016-04-25 15:57:49 -04:00
var prefix = "{{thread.Prefix}}";
2016-01-20 12:08:01 -05:00
var e = document.getElementById("nntpchan_banner");
2016-04-25 15:57:49 -04:00
nntpchan_inject_banners(e, prefix);
2017-01-16 11:06:50 -05:00
if(init) init(prefix);
ready(prefix);
2016-01-20 12:08:01 -05:00
</script>
<hr/>
2016-02-17 14: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 10:03:44 -04:00
</body>
2016-02-17 10:53:20 +01:00
</html>