Files
Claude a47cbc946f Image boards: captcha and Options settings, boards for users alone
[chan] captcha_length (4 to 10), captcha_level (easy, normal, hard:
how far the letters turn and wave, the lines and specks) and
captcha_lifetime; options = yes|no for the post form's Options line
(sage, nonoko: without it posts bump, on the web and the terminals).
A board's own captcha and options (yes, no, default) say otherwise
than [chan]'s.

A board's login is now no, post (only users post, as before; yes
still means it) or all: only the BBS's users see the board, its pages
redirecting others to sign in, its JSON refused, its images not
there, its front-page images left out and the board marked (members).
boards.json says login and captcha.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-14 02:40:13 +00:00

16 lines
1.1 KiB
HTML

{{define "front.html"}}{{template "top" .}}
<div class="frontTitle"><h1>{{.BBS}}</h1><p>Image boards: post a picture, talk about it. No account needed.</p></div>
{{with .Body}}
<div class="box"><h2>Boards</h2>
{{if .Boards}}<ul class="boards">{{range .Boards}}<li><a href="/chan/{{.Dir}}/" class="boardlink">/{{.Dir}}/ - {{.Title}}</a>{{if not .Worksafe}} <span class="nws" title="Not safe for work">(NSFW)</span>{{end}}{{if .LoginToRead}} <span class="members" title="For this BBS's users: sign in">(members)</span>{{end}}{{with .Description}}<div class="desc">{{.}}</div>{{end}}</li>{{end}}</ul>
{{else}}<p>There are no boards yet. The sysop makes them: <code>bbs chan board add b Random</code></p>{{end}}
</div>
{{with .Recent}}<div class="box"><h2>Recent Images</h2>
<div class="recent">{{range .}}<a href="{{.URL}}" title="/{{.Dir}}/ - {{.Title}}"><img src="{{.Thumb}}" alt="" width="{{.TnW}}" height="{{.TnH}}" loading="lazy"></a>{{end}}</div>
</div>{{end}}
<div class="box"><h2>Stats</h2>
<p>Total posts: <b>{{.Posts}}</b> &middot; Active content: <b>{{size .Bytes}}</b></p>
</div>
{{end}}
{{template "bottom" .}}{{end}}