2015-08-06 23:32:20 +05:00
|
|
|
{{!
|
|
|
|
frontpage.mustache -- template for index.html
|
|
|
|
template parameters:
|
2015-10-31 16:27:26 +05:00
|
|
|
- boardgraph ( a boardPageRows instance, see srnd/model.go )
|
|
|
|
- postgraph ( a postsGraph instance , see srnd/model.go )
|
2015-10-31 20:10:58 +05:00
|
|
|
- overview ( an overviewModel instance, see srnd/model.go )
|
2015-08-06 23:32:20 +05:00
|
|
|
- totalposts ( the number of total posts we have ever seen )
|
|
|
|
- frontend ( the name of the frontend )
|
|
|
|
- prefix ( the site's prefix )
|
|
|
|
}}
|
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
2015-11-20 06:33:24 +05:00
|
|
|
<link rel="stylesheet" href="{{prefix}}static/site.css" />
|
|
|
|
<link rel="stylesheet" href="{{prefix}}static/user.css" />
|
2016-01-20 21:42:18 +05:00
|
|
|
<script src="{{prefix}}static/nntpchan.js" type="text/javascript">
|
|
|
|
</script>
|
2016-01-20 21:58:19 +05:00
|
|
|
<script>
|
|
|
|
var e = document.getElementById("nntpchan_banner");
|
|
|
|
nntpchan_inject_banners(e, "{{board.Prefix}}");
|
|
|
|
</script>
|
2015-08-06 23:32:20 +05:00
|
|
|
<title> {{frontend}} on nntpchan </title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<center>
|
|
|
|
<div class="index-outer">
|
|
|
|
<div class="index-inner">
|
|
|
|
<h1> {{frontend}} on nntpchan </h1>
|
2015-08-20 20:02:41 +05:00
|
|
|
<h2>View the <a href="ukko.html">overboard</a></h2>
|
2015-08-06 23:32:20 +05:00
|
|
|
<h3>Read the <a href="{{prefix}}static/faq.html">FAQ</a></h3>
|
2015-10-21 04:48:50 +05:00
|
|
|
<h3>Join the IRC on <a href="https://qchat.rizon.net/?channels=#nntpchan">rizon</a> or <a href="irc://127.0.0.1:6668/overchan">irc2p</a></h3>
|
2015-10-20 19:45:55 +05:00
|
|
|
<h3>Lurk on <a href="irc://allyour4nert7pkh.onion/overchan">URC</a></h3>
|
2015-10-19 18:26:38 +05:00
|
|
|
<h3>Check out the <a href="{{prefix}}boards.html">board list</a></h3>
|
2015-08-20 20:51:19 +05:00
|
|
|
<h3>Fork on github: <a href="https://github.com/majestrate/nntpchan/">frontend</a> and <a href="https://github.com/majestrate/srndv2/">core</a></h3>
|
2015-08-20 20:02:41 +05:00
|
|
|
<h4>We've Had {{totalposts}} Posts Since August 01 2015 </h4>
|
2015-08-06 23:32:20 +05:00
|
|
|
</div>
|
2016-01-20 21:58:19 +05:00
|
|
|
<div id="nntpchan_banner">
|
2016-01-20 21:52:04 +05:00
|
|
|
[banner]
|
2016-01-20 21:42:18 +05:00
|
|
|
</div>
|
2015-08-06 23:32:20 +05:00
|
|
|
<div class="index-inner">
|
2015-10-31 20:25:29 +05:00
|
|
|
<table>
|
2015-08-06 23:32:20 +05:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
2015-11-23 01:47:23 +05:00
|
|
|
<td class="posts_td">
|
2015-10-31 20:25:29 +05:00
|
|
|
{{{postsgraph.Render}}}
|
2015-08-06 23:32:20 +05:00
|
|
|
</td>
|
2015-11-23 01:47:23 +05:00
|
|
|
<td class="board_td">
|
2015-10-31 20:25:29 +05:00
|
|
|
{{! todo: move boardgraph into its own file like postsgraph }}
|
|
|
|
<table id="board_graph">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th> Board </th>
|
2015-11-09 07:18:49 +05:00
|
|
|
<th> Posts this Hour </th>
|
|
|
|
<th> Posts Today </th>
|
2015-10-31 20:25:29 +05:00
|
|
|
<th> Total </th>
|
|
|
|
</tr>
|
|
|
|
{{# boardgraph}}
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<a href="{{prefix}}{{Board}}-0.html">{{Board}}</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{Hour}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{Day}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{All}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/ boardgraph}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-08-06 23:32:20 +05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2015-10-31 20:30:17 +05:00
|
|
|
{{{overview.Render}}}
|
2015-08-06 23:32:20 +05:00
|
|
|
</div>
|
2015-10-31 16:30:57 +05:00
|
|
|
</div>
|
2015-08-06 23:32:20 +05:00
|
|
|
</center>
|
|
|
|
</body>
|
2015-11-09 07:18:49 +05:00
|
|
|
</html>
|