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

91 lines
3.6 KiB
Plaintext
Raw Normal View History

2015-08-06 14:32:20 -04:00
{{!
frontpage.mustache -- template for index.html
template parameters:
2016-02-22 07:32:49 -05:00
- boardgraph ( markup of boardPageRows instance, see srnd/model.go )
- postgraph ( markup of postsGraph instance , see srnd/model.go )
- overview ( markup of overviewModel instance , see srnd/model.go )
2015-08-06 14:32:20 -04: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-19 20:33:24 -05:00
<link rel="stylesheet" href="{{prefix}}static/site.css" />
2016-03-07 20:25:29 -05:00
<link id="current_theme" rel="stylesheet" href="{{prefix}}static/user.css" />
2016-01-20 12:16:30 -05:00
<script src="{{prefix}}static/nntpchan.js" type="text/javascript"></script>
2015-08-06 14:32:20 -04:00
<title> {{frontend}} on nntpchan </title>
</head>
2016-03-08 07:17:48 -05:00
<body onload="main()">
2016-03-08 08:42:52 -05:00
{{{navbar}}}
2015-08-06 14:32:20 -04:00
<center>
<div class="index-outer">
<div class="index-inner">
<h1> {{frontend}} on nntpchan </h1>
2015-08-20 11:02:41 -04:00
<h2>View the <a href="ukko.html">overboard</a></h2>
2015-08-06 14:32:20 -04:00
<h3>Read the <a href="{{prefix}}static/faq.html">FAQ</a></h3>
2015-10-20 19:48:50 -04: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 10:45:55 -04:00
<h3>Lurk on <a href="irc://allyour4nert7pkh.onion/overchan">URC</a></h3>
2015-10-19 09:26:38 -04:00
<h3>Check out the <a href="{{prefix}}boards.html">board list</a></h3>
2015-08-20 11:51:19 -04: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 11:02:41 -04:00
<h4>We've Had {{totalposts}} Posts Since August 01 2015 </h4>
2015-08-06 14:32:20 -04:00
</div>
2016-01-20 11:58:19 -05:00
<div id="nntpchan_banner">
2016-01-20 11:42:18 -05:00
</div>
2015-08-06 14:32:20 -04:00
<div class="index-inner">
2015-10-31 11:25:29 -04:00
<table>
2015-08-06 14:32:20 -04:00
<tbody>
<tr>
<td class="posts_td">
2016-02-22 07:32:49 -05:00
{{{postsgraph}}}
2015-08-06 14:32:20 -04:00
</td>
<td class="board_td">
2015-10-31 11:25:29 -04:00
{{! todo: move boardgraph into its own file like postsgraph }}
<table id="board_graph">
2016-02-15 21:20:37 +01:00
<thead>
2015-10-31 11:25:29 -04:00
<tr>
2016-02-28 13:40:16 +01:00
<th> {{#i18n.Translations}}{{board_label}}{{/i18n.Translations}} </th>
<th> {{#i18n.Translations}}{{posts_hour}}{{/i18n.Translations}} </th>
<th> {{#i18n.Translations}}{{posts_today}}{{/i18n.Translations}} </th>
<th> {{#i18n.Translations}}{{total}}{{/i18n.Translations}} </th>
2015-10-31 11:25:29 -04:00
</tr>
2016-02-15 21:20:37 +01:00
</thead>
<tbody>
2015-10-31 11:25:29 -04:00
{{# 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 14:32:20 -04:00
</td>
</tr>
</tbody>
</table>
2016-02-22 07:32:49 -05:00
{{{overview}}}
2015-08-06 14:32:20 -04:00
</div>
2015-10-31 07:30:57 -04:00
</div>
2015-08-06 14:32:20 -04:00
</center>
2016-01-20 12:16:30 -05:00
<script type="text/javascript">
2016-01-20 12:08:01 -05:00
var e = document.getElementById("nntpchan_banner");
2016-01-20 12:09:55 -05:00
nntpchan_inject_banners(e, "{{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-06 14:32:20 -04:00
</body>
2015-11-08 21:18:49 -05:00
</html>