fix builds for modern Go, add postsgraph boardgraph, fix captcha, krane CSS updates

This commit is contained in:
tomoko-dev9
2026-05-11 03:58:08 +00:00
parent 50e8b0a327
commit aee7b0a2e2
7 changed files with 2599 additions and 910 deletions
+7 -11
View File
@@ -1,4 +1,4 @@
{!
{{!
frontpage.mustache -- template for index.html
template parameters:
- boardgraph ( markup of boardPageRows instance, see srnd/model.go )
@@ -23,15 +23,14 @@
<div id="nntpchan_banner">
</div>
<div class="index-inner">
<h2> <div>{{frontend}} on nntpchan</div></h2>
<h2>View the <a href="/o/?lang=en">overboard</a></h2>
<h3>Read the <a href="{{prefix}}static/faq.html">FAQ</a></h3>
<h3>Lurk on <a href="irc://allyour4nert7pkh.onion/overchan">URC</a></h3>
<h3>Check out the <a href="{{prefix}}boards.html">board list</a></h3>
<h3>Fork on github: <a href="https://github.com/nesshy9/nntpchan/">frontend</a> and <a href="https://github.com/majestrate/srndv2/">core</a></h3>
<div>{{frontend}} on nntpchan</div>
<div>View the <a href="{{prefix}}ukko.html">overboard</a></div>
<div>Join the IRC on <a href="https://qchat.rizon.net/">rizon</a> or <a href="irc://127.0.0.1:6668/overchan">irc2p</a></div>
<div>Check out the <a href="{{prefix}}boards.html">board list</a></div>
<div>Fork on github: <a href="https://github.com/tomoko-dev9/nntpchan/">frontend</a> and <a href="https://github.com/majestrate/srndv2/">core</a></div>
<div>We've Had {{totalposts}} Posts Since May 10 2026 </div>
</div>
<div class="index-inner">
<!--
<table>
<tbody>
<tr>
@@ -72,9 +71,6 @@
</tr>
</tbody>
</table>
-->
{{{OvercockGraph}}}
{{{overview}}}
</div>
</div>
+51 -7
View File
@@ -14,31 +14,75 @@
<meta lang="{{i18n.Name}}" />
<link rel="stylesheet" href="{{prefix}}static/krane.css" />
<link rel="stylesheet" href="{{prefix}}static/user.css" />
<script src="{{prefix}}static/nntpchan.js" type="text/javascript"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta property="og:site_name" content="changolia" />
<meta property="og:type" content="website"/>
<meta property="og:title" content="changolia"/>
<meta property="og:description" content="Most of the rest of the wild west"/>
<meta property="og:url" content="{{prefix}}"/>
<meta property="og:image"
content="{{prefix}}static/retrotor.png"/>
<title> NNTPChan </title>
<meta property="og:image" content="{{prefix}}static/retrotor.png"/>
<title> {{frontend}} on NNTPChan </title>
</head>
<body>
{{{navbar}}}
<center>
<img id="logo" src="{{prefix}}static/retrotor.png" />
<a href="{{prefix}}b/"><h2>Board List</h2></a>
<a href="{{prefix}}o/?lang={{i18n.Name}}">Firehose</a>
<a href="{{prefix}}static/faq.html">FAQ</a>
<div>We've Had {{totalposts}} Posts Since August 01 2015</div>
</center>
<hr/>
<center>
<table>
<tbody>
<tr>
<td class="posts_td">
{{{postsgraph}}}
</td>
<td class="board_td">
{{! todo: move boardgraph into its own file like postsgraph }}
<table id="board_graph">
<thead>
<tr>
<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>
</tr>
</thead>
<tbody>
{{# boardgraph}}
<tr>
<td>
<a href="{{prefix}}b/{{Board}}/">{{Board}}</a>
</td>
<td>
{{Hour}}
</td>
<td>
{{Day}}
</td>
<td>
{{All}}
</td>
</tr>
{{/ boardgraph}}
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
{{{overview}}}
</center>
<hr/>
<center>
<center>
<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>
</center>
</body>
</center>
</html>