Web forum: themes along the YaBB lineage

yabb1 (Gold, as YaBB 1 Gold), yabb2 (Default, as YaBB 2.0-2.4, wearing
yabb1's pages under its own head and board index) and yabb25 (Silver,
as YaBB 2.5, wearing yabb2's with its own head, board index and topic).
Layouts follow the templates and stylesheets in YaBB's releases on
SourceForge, and colors follow those stylesheets and, for 2.5, its
translucent images laid over their colors; the templates and CSS are
written for this BBS and take no code or images from YaBB (folders,
lamps, orbs, stars and icons are drawn in CSS).  Adds YaBB's two date
styles, the second with its ordinal day.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
This commit is contained in:
Claude committed 2026-10-13 20:45:05 +00:00
1 parent db49e3f2af
commit 8274dad087
21 files changed
+1186 -8

No files matched your search

+1 -1
View File
@@ -84,7 +84,7 @@ What there is:
elsewhere by telnet or RLogin, and the door networks BBSLink and DoorParty
- [chat](https://github.com/Neo-Desktop/bbs-sec/wiki/Chat-and-Paging): rooms, messages to a node, paging the sysop
- [finger and gopher](https://github.com/Neo-Desktop/bbs-sec/wiki/Finger-and-Gopher): who is on, and chosen areas in gopherspace
- [a web forum](https://github.com/Neo-Desktop/bbs-sec/wiki/Web-Forum): the message areas as a bulletin board in the browser, in the manner of Invision Power Board 3, or of IPB 5, 4, 2 or 1, Ikonboard, vBulletin 6 back to 2 or Lite, XenForo 2.3 back to 1, MyBB 1.8 back to 1.2, PunBB 1.4 and 1.2, FluxBB 1.5, Simple Machines Forum 3.0 back to 1, or phpBB 3.3 back to 1 (themes)
- [a web forum](https://github.com/Neo-Desktop/bbs-sec/wiki/Web-Forum): the message areas as a bulletin board in the browser, in the manner of Invision Power Board 3, or of IPB 5, 4, 2 or 1, Ikonboard, vBulletin 6 back to 2 or Lite, XenForo 2.3 back to 1, MyBB 1.8 back to 1.2, PunBB 1.4 and 1.2, FluxBB 1.5, YaBB 2.5 back to 1, Simple Machines Forum 3.0 back to 1, or phpBB 3.3 back to 1 (themes)
- [a web terminal](https://github.com/Neo-Desktop/bbs-sec/wiki/HTTP-API#the-web-terminal): the BBS in a browser (xterm.js, built in)
- [an HTTP API](https://github.com/Neo-Desktop/bbs-sec/wiki/HTTP-API): REST, server-sent events, and WebSockets (JSON or protobuf) where web clients chat with terminal callers; Prometheus metrics
- [customization](https://github.com/Neo-Desktop/bbs-sec/wiki/Customization): ANSI art and 3270 screens, menus of the sysop's, @-codes, the prompts' words
+6 -4
View File
@@ -221,10 +221,12 @@ address = 127.0.0.1:2513
; XenForo 2), xf1 (classic, as XenForo 1), mybb18 (flat, as MyBB 1.8),
; mybb16 (classic, as MyBB 1.6), mybb12 (original, as MyBB 1.2), pun14
; (oxygen 2, as PunBB 1.4), flux15 (air, as FluxBB 1.5), pun12 (oxygen, as
; PunBB 1.2), smf30 (natural, as Simple Machines Forum 3.0), smf21 (simple,
; as SMF 2.1), smf20 (curve, as SMF 2.0), smf1 (core, as SMF 1), phpbb33,
; phpbb32, phpbb31 and phpbb30 (prosilver, as phpBB 3.3, 3.2, 3.1 and 3.0),
; phpbb2 (silver, as phpBB 2) or phpbb1 (dark, as phpBB 1)
; PunBB 1.2), yabb25 (silver, as YaBB 2.5), yabb2 (default, as YaBB 2),
; yabb1 (gold, as YaBB 1 Gold), smf30 (natural, as Simple Machines Forum
; 3.0), smf21 (simple, as SMF 2.1), smf20 (curve, as SMF 2.0), smf1 (core,
; as SMF 1), phpbb33, phpbb32, phpbb31 and phpbb30 (prosilver, as phpBB 3.3,
; 3.2, 3.1 and 3.0), phpbb2 (silver, as phpBB 2) or phpbb1 (dark, as phpBB
; 1)
;forum_theme = ipb3
; Access levels: a user's level (0-255) gets what the [level] at or
+1 -1
View File
@@ -26,7 +26,7 @@ key_file = /etc/bbs/tls/key.pem
| `rate`, `burst` | `10`, `20` | requests a second per token (per address without one), and how many may come at once |
| `session_hours` | `24` | how long a login's token lasts |
| `terminal` | `yes` | the web terminal page (below) |
| `forum`, `forum_guests`, `forum_theme` | `yes`, `yes`, `ipb3` | the [web forum](Web-Forum), guests reading it, and its theme (`ipb3`, `ipb5`, `ipb4`, `ipb2`, `ipb1`, `ikon`, `vb6`, `vb5`, `vb4`, `vb3`, `vb2`, `vblite`, `xf23`, `xf2`, `xf1`, `mybb18`, `mybb16`, `mybb12`, `pun14`, `flux15`, `pun12`, `smf30`, `smf21`, `smf20`, `smf1`, `phpbb33`, `phpbb32`, `phpbb31`, `phpbb30`, `phpbb2` or `phpbb1`) |
| `forum`, `forum_guests`, `forum_theme` | `yes`, `yes`, `ipb3` | the [web forum](Web-Forum), guests reading it, and its theme (`ipb3`, `ipb5`, `ipb4`, `ipb2`, `ipb1`, `ikon`, `vb6`, `vb5`, `vb4`, `vb3`, `vb2`, `vblite`, `xf23`, `xf2`, `xf1`, `mybb18`, `mybb16`, `mybb12`, `pun14`, `flux15`, `pun12`, `yabb25`, `yabb2`, `yabb1`, `smf30`, `smf21`, `smf20`, `smf1`, `phpbb33`, `phpbb32`, `phpbb31`, `phpbb30`, `phpbb2` or `phpbb1`) |
The OpenAPI 3.1 description is at `/api/v1/openapi.json`.
+1 -1
View File
@@ -83,7 +83,7 @@ What there is:
[IRC](IRC) channels too, for IRC clients, and [MRC](MRC)'s rooms join the
BBSes' Multi Relay Chat
- [finger and gopher](Finger-and-Gopher): who is on, and chosen areas in gopherspace
- [a web forum](Web-Forum): the message areas as a bulletin board in the browser, in the manner of Invision Power Board 3, or of IPB 5, 4, 2 or 1, Ikonboard, vBulletin 6 back to 2 or Lite, XenForo 2.3 back to 1, MyBB 1.8 back to 1.2, PunBB 1.4 and 1.2, FluxBB 1.5, Simple Machines Forum 3.0 back to 1, or phpBB 3.3 back to 1 (themes)
- [a web forum](Web-Forum): the message areas as a bulletin board in the browser, in the manner of Invision Power Board 3, or of IPB 5, 4, 2 or 1, Ikonboard, vBulletin 6 back to 2 or Lite, XenForo 2.3 back to 1, MyBB 1.8 back to 1.2, PunBB 1.4 and 1.2, FluxBB 1.5, YaBB 2.5 back to 1, Simple Machines Forum 3.0 back to 1, or phpBB 3.3 back to 1 (themes)
- [a web terminal](HTTP-API#the-web-terminal): the BBS in a browser (xterm.js, built in)
- [an HTTP API](HTTP-API): REST, server-sent events, and WebSockets (JSON or protobuf) where web clients chat with terminal callers; Prometheus metrics
- [customization](Customization): ANSI art and 3270 screens, menus of the sysop's, @-codes, the prompts' words
+4 -1
View File
@@ -94,6 +94,9 @@ On a post:
| `pun14` | oxygen 2: PunBB 1.3 and 1.4's Oxygen, a lighter look over pages of its own: a grey head with the board's name, a blue bar of links and a white welcome strip, each forum list and topic in a box with a blue head and a grey row naming the columns, bevelled square forum icons, posts with a grey *Reply by* strip and the date at the right, the author with picture and counts at the left, *Profile*, *Like* and *Quote* in a row beneath, *Quick reply* at the foot |
| `flux15` | air: FluxBB 1.4 and 1.5's Air over PunBB 1.2's pages (the pun12 theme's): a white rounded frame on a pale blue page, a slate-blue menu of tabs, teal headings over pale blue column rows, posts in pale blue with the author at the left, quotes in pale yellow boxes, Arial |
| `pun12` | oxygen: a lightweight PHP board of 2004-2008 in the manner of PunBB 1.2's (and FluxBB 1.2's) Oxygen: small Verdana, a blue title bar with a menu of plain links, tables of forums with blue heads and grey column rows, square forum lamps, posts with a blue strip giving the number and date, the author at the left on grey, *Quick post* at the foot, *Board information* |
| `yabb25` | silver: YaBB 2.5's default look over 2's pages (the yabb2 theme's): a silver page in a grey frame, a glossy clock strip, glossy grey tabs with the chosen one lit and a search box, each category under a rounded glossy title, boards on pale grey rows shaded at the top with a grey folder and a glowing orange orb for new posts, posts with the poster across the top on a grey band over the message, in rounded grey frames |
| `yabb2` | default: YaBB 2.0-2.4's default template over 1's pages (the yabb1 theme's): a blue-white page, tables in grey frames with a pale ledge, a bright blue title row with the greeting and a search box, the way here in bold blue, pale blue category rows with a speech balloon, rounded lamps with a tick (orange for new), the last post before the counts, posts ruled off in pale blue with smaller grey type, little validator buttons at the foot |
| `yabb1` | gold: a Perl board of 2001-2004 in the manner of YaBB 1 Gold: everything in tables ruled with a one-pixel slate grid, a head with the board's name and *Hey, alice* over a pale menu row of words split by bars, the way here as a tree of open folders, pale steel title and category rows, manila folders for boards and topics (a blue badge for new, a flag when hot), posts with the poster and their stars at the left, *Reply #1 on: 10/12/26 at 23:12:05*, an *Info Center* |
| `smf30` | natural: Simple Machines Forum 3.0's refinement of 2.1 (the smf21 theme's pages): the top strip and the menu each on a soft blue-to-white band, a rounded breadcrumb, a deep slate foot, and a dark scheme in slate blues and warm orange when the reader's device asks for one |
| `smf21` | simple: Simple Machines Forum 2.1's default look, grown out of Curve (the smf20 theme's pages): a white strip across the top with the member's name and a search box, a dark blue page edge, a bordered frame with the board's name in orange, orange pills for the current menu item, a boxed breadcrumb, flat steel-blue category bars, title bars edged in orange, posts as bordered boxes, small capital buttons in a row, a dark blue foot |
| `smf20` | curve: a PHP board of 2011-2019 in the manner of Simple Machines Forum 2.0's Curve: a slate blue band fading to a pale page, a white rounded frame, *Hello* with the member's picture and the news beside it, rounded menu buttons, a breadcrumb with little arrows, rounded steel-blue category bars over rounded pale-blue blocks, orange board and poster names, *Posts / Topics* and *Last post by … in … on …*, an *Info Center*, posts with the poster's group, stars and post count on the left and *« Reply #1 on: … »* above, *Quick Reply* |
@@ -110,7 +113,7 @@ they recall; no code or images are taken from them. `forum_theme` is the
forum's; anyone (guests too) may choose another at the foot of every page,
kept in a cookie (`bbs_forum_theme`) for a year. A theme lays out the
board, topic lists, topics and profiles its own way, and shows the rest
(posting, searching, signing in) in its colors. A theme may build on another's templates (the phpBB 3.2 and 3.3 themes wear 3.1's, vBulletin 6's wears 5's, SMF 3.0's and 2.1's wear Curve's, XenForo 2.3's wears 2's, MyBB 1.8's wears 1.6's, which wears 1.2's, and FluxBB 1.5's wears PunBB 1.2's, with stylesheets of their own).
(posting, searching, signing in) in its colors. A theme may build on another's templates (the phpBB 3.2 and 3.3 themes wear 3.1's, vBulletin 6's wears 5's, SMF 3.0's and 2.1's wear Curve's, XenForo 2.3's wears 2's, MyBB 1.8's wears 1.6's, which wears 1.2's, FluxBB 1.5's wears PunBB 1.2's, and YaBB 2.5's wears 2's, which wears 1's, with stylesheets of their own).
## Logins
+19
View File
@@ -27,6 +27,8 @@ var funcs = template.FuncMap{
"vbtime": func(t time.Time) string { return t.Format("03:04 PM") },
"smfdate": func(t time.Time) string { return t.Format("January 02, 2006, 03:04:05 PM") },
"ymd": func(t time.Time) string { return t.Format("2006-01-02") },
"yabbdate": func(t time.Time) string { return t.Format("01/02/06 at 15:04:05") },
"yabb2date": yabb2Date,
"mod5": func(n int) int { return n % 5 },
"shortdate": func(t time.Time) string { return t.Format("Jan. 02, 2006") },
"clock": func(t time.Time) string { return t.Format("03:04 PM") },
@@ -312,3 +314,20 @@ func newPages(base string, count, cur int) pages {
}
func urlEscape(s string) string { return url.QueryEscape(s) }
// yabb2Date writes a time as YaBB 2 did by default: "Oct 12th, 2026, 11:12pm".
func yabb2Date(t time.Time) string {
d := t.Day()
suffix := "th"
if d < 11 || d > 13 {
switch d % 10 {
case 1:
suffix = "st"
case 2:
suffix = "nd"
case 3:
suffix = "rd"
}
}
return fmt.Sprintf("%s %d%s, %d, %s", t.Format("Jan"), d, suffix, t.Year(), t.Format("3:04pm"))
}
+3
View File
@@ -70,6 +70,9 @@ var Themes = []Theme{
{"pun14", "Oxygen 2 (PunBB 1.4 style)", ""},
{"flux15", "Air (FluxBB 1.5 style)", "pun12"},
{"pun12", "Oxygen (PunBB 1.2 style)", ""},
{"yabb25", "Silver (YaBB 2.5 style)", "yabb2"},
{"yabb2", "Default (YaBB 2 style)", "yabb1"},
{"yabb1", "Gold (YaBB 1 style)", ""},
{"smf30", "Natural (SMF 3.0 style)", "smf21"},
{"smf21", "Simple (SMF 2.1 style)", "smf20"},
{"smf20", "Curve (SMF 2.0 style)", ""},
+24
View File
@@ -429,6 +429,9 @@ func TestThemes(t *testing.T) {
"pun12": {{"postleft", "Quick post", "Post reply", "/forum/static/pun12.css"}, {"Board information", "Total number of registered users", "You are not logged in."}},
"flux15": {{"postleft", "Quick post", "Post reply", "/forum/static/flux15.css"}, {"Board information", "You are not logged in.", "/forum/static/flux15.css"}},
"pun14": {{"post-author", "Quick reply to", "entry-content", "/forum/static/pun14.css"}, {"Forum statistics", "Currently online", "brd-navlinks"}},
"yabb1": {{"Reply #1 on:", "Post reply", `class="bordercolor yypost`, "/forum/static/yabb1.css"}, {"Info Center", "Welcome, Guest. Please", "yytree", "/forum/static/yabb1.css"}},
"yabb2": {{"Reply #1 on:", "navbarcontainer", "/forum/static/yabb2.css"}, {"Info Center", "boardcontainer", "Welcome, Guest. Please", "/forum/static/yabb2.css"}},
"yabb25": {{`class="userinfo"`, "Reply #1 - ", "Quick Reply", "/forum/static/yabb25.css"}, {"Forum Statistics", "tabtitle", "Welcome, <b>Guest</b>", "/forum/static/yabb25.css"}},
"smf1": {{"Author", "Quick Reply", "(Read ", "Reply #1 on:"}, {"Info Center", "Forum Stats", "Hello <em>Guest</em>", `class="board_icon`}},
"smf20": {{"<span class=\"author\">Author</span> Topic: ", "Quick Reply", `class="post_wrapper"`, "Reply #1 on:"}, {"Info Center", "Users Online", "Login with username and password", "/forum/static/smf20.css"}},
"smf21": {{"<span class=\"author\">Author</span> Topic: ", `class="post_wrapper"`, "/forum/static/smf21.css"}, {"Info Center", `id="top_info"`, "/forum/static/smf21.css"}},
@@ -466,6 +469,11 @@ func TestThemeLineage(t *testing.T) {
if th.Parent != "" && !KnownTheme(th.Parent) {
t.Errorf("%s: no parent %s", th.Name, th.Parent)
}
if th.Name == "yabb25" {
if got := strings.Join(lineage(th), " "); got != "yabb1 yabb2 yabb25" {
t.Errorf("yabb25's lineage: %s", got)
}
}
if th.Name == "phpbb33" {
if got := strings.Join(lineage(th), " "); got != "phpbb31 phpbb32 phpbb33" {
t.Errorf("phpbb33's lineage: %s", got)
@@ -494,3 +502,19 @@ func TestAgo(t *testing.T) {
}
}
}
func TestYabb2Date(t *testing.T) {
for _, c := range []struct {
day int
want string
}{
{1, "Oct 1st, 2026, 11:12pm"}, {2, "Oct 2nd, 2026, 11:12pm"}, {3, "Oct 3rd, 2026, 11:12pm"},
{4, "Oct 4th, 2026, 11:12pm"}, {11, "Oct 11th, 2026, 11:12pm"}, {12, "Oct 12th, 2026, 11:12pm"},
{13, "Oct 13th, 2026, 11:12pm"}, {21, "Oct 21st, 2026, 11:12pm"}, {22, "Oct 22nd, 2026, 11:12pm"},
{23, "Oct 23rd, 2026, 11:12pm"}, {31, "Oct 31st, 2026, 11:12pm"},
} {
if got := yabb2Date(time.Date(2026, 10, c.day, 23, 12, 0, 0, time.UTC)); got != c.want {
t.Errorf("yabb2Date(day %d) = %q, want %q", c.day, got, c.want)
}
}
}
+256
View File
@@ -0,0 +1,256 @@
/*
* The forum's YaBB theme: laid out in the manner of the Perl boards of
* 2001-2004 (YaBB 1 Gold's default template and its kind): a light
* grey page, everything in tables ruled with a one-pixel slate-blue
* grid, a head with the board's name and a "Hey, alice" greeting over a
* pale menu row of words split by bars, the way to the page as a little
* tree of open folders, pale steel title rows and category rows, cells
* in pale blue and white, manila folders for boards and topics (a blue
* badge when there is something new, a flag when a topic runs hot),
* posts with the poster and their stars in a column at the left,
* "Reply #1 on: 10/12/26 at 23:12:05" over a rule, Verdana. Colors
* follow YaBB 1 Gold's template; the CSS is our own and no images are
* taken (the folders, stars and icons are drawn here).
*/
:root {
--page: #f5f5f5;
--grid: #b1bdc9;
--wb: #dde3eb;
--wb2: #fefefe;
--title: #e8ebef;
--title-text: #304b58;
--cat: #d2d9e2;
--cat-text: #304b58;
--text: #000;
--link: #75879a;
--link-hover: #75879a;
--nav: #000;
--nav-hover: #cc3333;
--hr: #273f49;
--quote: #e8ebef;
--quote-line: #b1bdc9;
--input: #e8ebef;
--folder-a: #fff3c8;
--folder-b: #e9d27c;
--folder-line: #8a7a3c;
--badge: #2a5fc8;
--font: Verdana, Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body.yabb { margin: 0; padding: 16px 0; background: var(--page); color: var(--text); font: 13px/1.35 var(--font); }
#container { width: 92%; margin: 0 auto; }
a:link, a:visited { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); border-bottom: 1px solid currentColor; }
b, strong { font-weight: bold; }
.small, .desc { font-size: 11px; }
.inline-form { display: inline; }
.linkish { padding: 0; margin: 0; border: 0; background: none; color: var(--link); font: inherit; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.menusep { color: var(--title-text); }
hr.hr, .yabb hr { height: 1px; margin: 4px 0; border: 0; background: var(--hr); }
/* --- the tables: a one-pixel grid of slate blue */
table.bordercolor { width: 100%; margin: 0 0 16px; border-spacing: 1px; background: var(--grid); font-size: 13px; }
table.bordercolor td, table.bordercolor th { padding: 4px; text-align: left; vertical-align: middle; font-weight: normal; }
.windowbg { background: var(--wb); }
.windowbg2 { background: var(--wb2); }
th.titlebg, td.titlebg, .titlebg { background: var(--title); color: var(--title-text); font-weight: bold; }
.catbg { background: var(--cat); color: var(--cat-text); font-weight: bold; }
table.bordercolor .titlebg, table.bordercolor .catbg { font-weight: bold; }
.catbg a:link, .catbg a:visited, .titlebg a:link, .titlebg a:visited { color: var(--cat-text); }
.num { width: 1%; text-align: center !important; white-space: nowrap; }
td.icon { width: 6%; text-align: center !important; }
.last { width: 24%; }
/* the head */
.yyheader { margin-bottom: 20px; }
.yyheader td { padding: 3px 6px; }
.yylogo { width: 230px; }
.yylogo a, .yylogo a:hover { display: block; padding: 6px 4px; border: 0; }
.yylogo-name { display: block; color: #3c5b6c; font: bold italic 26px/1 Georgia, "Times New Roman", serif; letter-spacing: -0.5px; text-shadow: 1px 1px 0 #c8d2dc; }
.yylogo-sub { display: block; margin-top: 2px; color: #75879a; font: bold 10px var(--font); letter-spacing: 4px; text-transform: uppercase; }
.yywelcome { vertical-align: top !important; padding-top: 12px !important; font-size: 13px; }
.yytime { font-size: 11px; }
.yynews { margin-top: 10px; font-size: 13px; }
td.yymenu { height: 30px; text-align: center !important; font-size: 11px; }
.yymenu a:link, .yymenu a:visited, .yymenu .linkish { color: #000; font-weight: bold; font-size: 11px; }
.yymenu a:hover, .yymenu .linkish:hover { color: var(--nav-hover); border: 0; text-decoration: underline; }
.yynotice { margin: 0 0 14px; padding: 6px 8px; border: 1px solid var(--grid); background: var(--wb2); text-align: center; }
/* the way here: a tree of open folders */
.yytree { margin: 0 0 6px; font-size: 11px; font-weight: bold; }
.yytree-row { display: flex; align-items: flex-end; gap: 4px; min-height: 17px; }
.yytree-row.d1 { padding-left: 4px; }
.yytree-row.d2 { padding-left: 22px; }
.yytree-row.d3 { padding-left: 40px; }
.yytree-row.d4 { padding-left: 58px; }
.tline { display: inline-block; width: 12px; height: 10px; margin-bottom: 4px; border-left: 1px dotted #7b7b7b; border-bottom: 1px dotted #7b7b7b; }
.nav a:link, .nav a:visited, a.nav:link, a.nav:visited { color: var(--nav); }
.nav a:hover, a.nav:hover { color: var(--nav-hover); border: 0; text-decoration: underline; }
/* manila folders, drawn: boards, topics and the tree */
.ficon { position: relative; display: inline-block; width: 20px; height: 13px; margin: 4px 1px 0; vertical-align: middle; border: 1px solid var(--folder-line); border-radius: 1px; background: linear-gradient(var(--folder-a), var(--folder-b)); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.7); }
.ficon::before { content: ""; position: absolute; top: -4px; left: -1px; width: 8px; height: 3px; border: 1px solid var(--folder-line); border-bottom: 0; border-radius: 2px 2px 0 0; background: var(--folder-a); }
.ficon.open::after { content: ""; position: absolute; left: 2px; right: -3px; bottom: -1px; height: 8px; border: 1px solid var(--folder-line); background: linear-gradient(#fff8dc, var(--folder-a)); transform: skewX(-24deg); }
.ficon.board::after { content: ""; position: absolute; left: -5px; bottom: -4px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0 1.5px, #9a9a9a 2px 3px, #6a6a6a 3.5px); }
.ficon.board.on::after { background: radial-gradient(circle at 50% 50%, #fff 0 1.5px, #5d8de6 2px 3px, var(--badge) 3.5px); }
.ficon.hot::after, .ficon.veryhot::after { content: ""; position: absolute; left: -3px; top: -6px; width: 8px; height: 17px; border-left: 1px solid #555; background: linear-gradient(#f2dc00, #f2dc00) no-repeat 0 0 / 7px 6px; }
.ficon.veryhot::after { background-image: linear-gradient(#e0201c, #e0201c); }
.yylegend-topics { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -8px 0 16px; }
/* little pictures: a page for the message, information, who is on */
.yyicon { display: inline-block; vertical-align: middle; }
.yyicon.xx { width: 11px; height: 13px; border: 1px solid #999; background: repeating-linear-gradient(#fff 0 2px, #b8b8b8 2px 3px) 2px 2px / 5px 8px no-repeat, #f4f4f4; }
.yyicon.info { position: relative; width: 18px; height: 14px; border: 1px solid #44444a; border-radius: 2px; background: #eaebff; }
.yyicon.info::before { content: "i"; position: absolute; inset: 0; color: #22224a; font: bold 11px/12px Georgia, serif; text-align: center; }
.yyicon.online { width: 22px; height: 15px; background: radial-gradient(circle at 7px 4px, #c96 0 2.5px, transparent 3px), radial-gradient(circle at 15px 4px, #963 0 2.5px, transparent 3px), radial-gradient(ellipse 4px 6px at 7px 14px, #3b6db0 0 99%, transparent), radial-gradient(ellipse 4px 6px at 15px 14px, #8a3b2e 0 99%, transparent); }
.yyicon.ip { position: relative; width: 14px; height: 10px; margin-bottom: 3px; border: 1px solid #69727a; background: #a6b0ba; }
.yyicon.ip::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: -4px; height: 2px; background: #69727a; }
.yyicon.poll { width: 14px; height: 12px; background: linear-gradient(#3a6ea5, #3a6ea5) 1px 5px / 3px 7px no-repeat, linear-gradient(#c33, #c33) 5px 1px / 3px 11px no-repeat, linear-gradient(#e2b000, #e2b000) 9px 7px / 3px 5px no-repeat; }
.yyicon.profile { width: 12px; height: 13px; background: radial-gradient(circle at 6px 3.5px, #996633 0 3px, transparent 3.5px), radial-gradient(ellipse 6px 5px at 6px 13px, #4a6c8c 0 99%, transparent); }
td.yycat { padding: 4px 6px !important; height: 18px; font-size: 13px; }
/* the board index */
.yyboards td.info .boardname { font-size: 13px; }
.yyboards td.info .small { margin-top: 1px; }
.yyinfo th.titlebg { text-align: center; }
.yylegend { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-weight: normal; }
.yylegend .ficon { margin-right: 4px; }
.yyinfo td.icon { width: 30px; }
.yycols { display: flex; flex-wrap: wrap; gap: 4px 0; }
.yycols > div:first-child { flex: 0 0 60%; }
.yycols > div { padding: 2px 3px; }
/* the bars with page links and buttons */
table.yybar { margin-bottom: 0; }
table.yybar + table, table.yybar + .yylegend-topics { margin-top: 0; }
.yybar td.catbg { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13px; }
.yypages { font-weight: normal; }
.yypages b { font-weight: bold; }
.yybuttons { font-size: 11px; }
.yybuttons a:link, .yybuttons a:visited, .yybuttons .linkish { color: #000; font-weight: bold; }
.yybuttons a:hover, .yybuttons .linkish:hover { color: var(--nav-hover); border: 0; text-decoration: underline; }
.yytopics { margin-top: 0; }
.yytopics .micon { width: 4%; }
.yytopics .subject { width: 44%; }
.yytopics .starter { width: 14%; text-align: center !important; }
.yynew { display: inline-block; padding: 0 3px; border: 1px solid #c33 !important; background: #fee; color: #c33 !important; font: bold 9px/12px var(--font); text-transform: uppercase; }
td.none { padding: 10px !important; text-align: center !important; }
/* the topic */
table.yytitle { margin: 0; }
.yytitle th.author { width: 20%; }
.yytitle .ficon { margin-right: 6px; }
.yyread { font-weight: normal; }
table.yypost { margin: 0; border-spacing: 0; border: 1px solid var(--grid); border-top: 0; }
.yypost.alt1 td { background: var(--wb); }
.yypost.alt2 td { background: var(--wb2); }
.yypost td { padding: 6px !important; vertical-align: top !important; }
.yypost td.poster { width: 20%; overflow-wrap: anywhere; }
.yypost .yyname { font-size: 13px; }
.yypic { margin: 10px 0 8px; }
.yyposts { margin-top: 6px; }
.yystars { color: #f0b416; font-size: 13px; letter-spacing: 1px; text-shadow: 0 0 1px #996600; }
.yymsghead { display: flex; align-items: center; gap: 8px; }
.yysubj { flex: 1; font-size: 13px; }
.yypostbtns { align-self: flex-end; white-space: nowrap; }
.yypostbtns a:link, .yypostbtns a:visited, .yypostbtns .linkish { color: #000; }
.yypostbtns a:hover, .yypostbtns .linkish:hover { color: var(--nav-hover); border: 0; text-decoration: underline; }
.yymessage { min-height: 60px; font-size: 13px; overflow-wrap: anywhere; }
.yymessage p { margin: 0 0 10px; }
td.msgfoot { vertical-align: bottom !important; }
.yymsgfoot { display: flex; justify-content: space-between; gap: 10px; }
.yyip { white-space: nowrap; }
/* quotes: "Quote from: alice" over a pale box */
.yabb .citation { margin: 6px 0 0; font-size: 11px; font-weight: bold; }
.yabb blockquote.quote { margin: 2px 0 10px 18px; padding: 4px 6px; border: 1px solid var(--quote-line); background: var(--quote); font: 11px/1.4 Arial, Verdana, sans-serif; }
.yabb .citation + blockquote.quote { margin-top: 1px; }
.yabb pre, .yabb code { font-family: "Courier New", monospace; }
.yabb pre { padding: 4px 6px; background: #ccc; overflow: auto; }
/* polls */
.yypoll .answer { width: 30%; }
.yypoll .bar { width: 50%; }
.yypoll meter { width: 100%; height: 12px; }
.yypoll .votes { white-space: nowrap; }
.pollvote { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
/* the reply form and the profile */
table.yyform { margin-top: 16px; }
.yyform td.label, .yyprofile td.label { width: 25%; vertical-align: top !important; }
.yyform textarea { width: 100%; max-width: 600px; }
.yyform td.buttons { text-align: center !important; }
.yyprofile .yystars { margin-left: 4px; }
/* --- forms and the plain pages, in tables of the same make */
input[type=text], input[type=password], input[type=email], input[type=search], select, textarea { padding: 2px; border: 1px solid var(--grid); background: var(--input); color: #000; font: 12px var(--font); }
button, .button { padding: 1px 8px; border: 1px solid var(--grid); background: var(--input); color: #000; font: 12px var(--font); cursor: pointer; }
button.linkish { padding: 0; border: 0; background: none; color: var(--link); }
.box { margin: 0 0 16px; padding: 1px; background: var(--grid); }
.box > * { background: var(--wb2); }
.box > * + * { margin-top: 1px; }
.box > h2.maintitle { display: flex; gap: 8px; margin: 0; padding: 4px 6px; background: var(--title); color: var(--title-text); font-size: 13px; font-weight: bold; }
.box .count { margin-left: auto; font-weight: normal; }
.box.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.box-body { padding: 8px; }
.field { display: grid; grid-template-columns: 35% 1fr; align-items: center; gap: 6px; padding: 3px 0; font-weight: bold; }
.field input, .field textarea { font-weight: normal; }
.editor .field { grid-template-columns: 1fr; }
.editor-foot { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.signin .desc { margin-bottom: 6px; }
.poll-maker { margin: 8px 0; }
.poll-maker summary { cursor: pointer; font-weight: bold; }
.searchform { display: flex; gap: 6px; }
.searchform input { flex: 1; }
.message.error { color: #c33; font-weight: bold; }
p.message { margin: 0 0 16px; padding: 6px; border: 1px solid var(--grid); background: var(--wb2); }
table.board { width: 100%; border-spacing: 1px; background: var(--grid); }
table.board th { padding: 4px; background: var(--cat); color: var(--cat-text); text-align: left; }
table.board td { padding: 4px; background: var(--wb); vertical-align: top; }
table.board h3 { margin: 0; font-size: 13px; }
table.board p { margin: 2px 0 0; }
.snippet { color: #555; }
/* letter pictures for those without one */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; font: bold 14px var(--font); vertical-align: middle; }
.avatar.tiny { width: 16px; height: 16px; font-size: 9px; }
.avatar.mini { width: 24px; height: 24px; font-size: 12px; }
.avatar.small { width: 32px; height: 32px; font-size: 15px; }
.avatar.large { width: 64px; height: 64px; font-size: 30px; }
.avatar.huge { width: 80px; height: 80px; font-size: 38px; }
.av0 { background: #4f7bb0; } .av1 { background: #b0574f; } .av2 { background: #4f9a6b; }
.av3 { background: #8a5fb0; } .av4 { background: #c0862d; } .av5 { background: #3e8f9e; }
.av6 { background: #a24f86; } .av7 { background: #6b7a3c; } .av8 { background: #c06a3e; }
.av9 { background: #546478; } .av10 { background: #2f7f5f; } .av11 { background: #9b4545; }
/* --- the foot */
.copyright { margin-top: 10px; color: #000; font-size: 11px; text-align: center; line-height: 1.7; }
.yyfoot-theme { margin-bottom: 6px; }
.themepicker { display: inline-flex; align-items: center; gap: 4px; }
.themepicker select, .themepicker .button { font-size: 11px; }
/* --- narrow screens */
@media (max-width: 760px) {
body.yabb { padding: 6px 0; }
#container { width: auto; margin: 0 6px; }
.yyheader tr, .yyheader td { display: block; width: auto; }
.yywelcome { padding-top: 4px !important; }
.yylogo-name { font-size: 20px; }
.yyboards th.num, .yyboards td.num { display: none; }
.yyboards td.last { width: 34%; }
.yytopics .micon, .yytopics th.starter, .yytopics td.starter, .yytopics th.num, .yytopics td.num { display: none; }
.yytopics th[colspan] { display: none; }
.yytitle th.author { display: none; }
.yypost, .yypost tbody, .yypost tr, .yypost td { display: block; width: auto !important; }
.yypost td.poster { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding-bottom: 0 !important; }
.yypic { order: -1; margin: 0; }
.yypic .avatar.large { width: 32px; height: 32px; font-size: 15px; }
.yyposts { margin: 0; }
.yymsghead { flex-wrap: wrap; }
.yycols > div:first-child { flex-basis: 100%; }
.yyform td.label, .yyprofile td.label { width: 32%; }
.field { grid-template-columns: 1fr; }
}
+151
View File
@@ -0,0 +1,151 @@
/*
* The forum's YaBB 2 theme: YaBB 2.0-2.4's default template over the
* yabb1 theme's pages, with a head and board index of its own: a cool
* blue-white page, the tables in grey frames with a pale ledge beneath
* (the "seperator"), a bright blue title row carrying the greeting and a
* search box over the board's name, the time and the news, the way here
* as one line of bold blue links split by single angles, category rows
* in pale blue with white letters and a speech balloon, rounded lamps
* with a tick (orange when there is something new, blue when not), the
* last post before the counts, posts with their header and foot ruled
* off in pale blue, smaller grey message text, and the little validator
* buttons at the foot. Colors follow YaBB 2.1's default.css; the CSS is
* our own and no images are taken.
*/
@import url("yabb1.css");
:root {
--page: #f2f6f9;
--grid: #b1bdc9;
--frame: #bbbbbb;
--wb: #dde3eb;
--wb2: #fefefe;
--title: #6699cc;
--title-text: #fff;
--cat: #adc7e1;
--cat-text: #fff;
--text: #304b58;
--link: #62686f;
--link-hover: #000;
--nav: #5488c1;
--nav-hover: #cc3333;
--divider: #a7b8cc;
--quote: #e8ebef;
--quote-line: #34689a;
--msg: #62686f;
--msglink: #900000;
}
body.yabb2 { padding-top: 5px; font-size: 12px; }
.yabb2 #container { width: 90%; }
.yabb2 a:hover { border: 0; text-decoration: underline; }
.yabb2 table.bordercolor { margin-bottom: 0; font-size: 12px; }
.yabb2 .titlebg, .yabb2 .catbg { font-size: 13px; }
.yabb2 .catbg { text-shadow: 0 0 2px #6d8eb0; }
.yabb2 .catbg a:link, .yabb2 .catbg a:visited, .yabb2 .titlebg a:link, .yabb2 .titlebg a:visited { color: #fff; }
/* grey frames with a pale ledge, as YaBB 2 wrapped its tables */
.seperator, .boardcontainer { margin-bottom: 18px; border-bottom: 3px solid #eee; border-left: 1px solid #eee; background: var(--frame); }
.seperator > table.bordercolor, .boardcontainer > table.bordercolor { background: var(--frame); }
.seperator:has(+ .boardcontainer) { margin-bottom: 0; border-bottom: 0; }
/* the head */
.yyhead2 { margin-bottom: 26px; }
.yyheadtable { width: 100%; border-spacing: 1px; }
.yyheadtable td { padding: 2px 4px; }
td.yywelcbar { display: flex; align-items: center; justify-content: center; position: relative; min-height: 28px; }
.headerwelc { color: #fff; font-size: 13px; font-weight: bold; text-align: center; }
.headerwelc a:link, .headerwelc a:visited { color: #fff; }
.yysearchbox { position: absolute; right: 4px; display: flex; gap: 2px; }
.yysearchbox input { width: 120px; font-size: 10px; }
.yysearchbox button { font-size: 10px; padding: 0 4px; }
.yylogorow { padding: 6px 8px !important; }
.yylogobox { display: flex; align-items: flex-start; gap: 20px; }
.yylogo2, .yylogo2:hover { flex: 0 0 auto; width: 480px; max-width: 50%; padding: 4px 0 6px; border: 0; }
.yylogo2 .yylogo-name { color: #34689a; font: bold 30px/1 "Trebuchet MS", Verdana, sans-serif; letter-spacing: -1px; text-shadow: 2px 2px 0 #d5e2ef; }
.yylogo2 .yylogo-sub { margin-top: 4px; color: #6699cc; font: bold 10px Verdana, sans-serif; letter-spacing: 1px; text-transform: none; }
.yytimenews { padding: 10px 0 0 20px; font-size: 12px; }
.yytimenews .yytime { font-weight: bold; font-size: 12px; }
.yytimenews .yynews { margin-top: 5px; font-size: 12px; }
.yymenu2 { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--divider); text-align: center; font-size: 11px; }
.yymenu2 > * + *::before { content: "|"; margin: 0 7px; color: var(--divider); font-weight: normal; }
.yymenu2 a:link, .yymenu2 a:visited, .yymenu2 .linkish { color: #000; font-weight: bold; font-size: 11px; }
.yymenu2 a.selected { color: var(--nav); }
/* the way here */
.navbarcontainer { margin: 0 0 6px; }
.yabb2 .nav { font-size: 13px; font-weight: bold; color: var(--nav); }
.yabb2 .nav a:link, .yabb2 .nav a:visited { color: var(--nav); }
.yabb2 .nav a:hover { color: var(--nav-hover); }
/* lamps: rounded squares with a tick, orange for new */
.yylamp { position: relative; display: inline-block; width: 18px; height: 18px; vertical-align: middle; border: 1px solid #9696a2; border-radius: 4px; background: linear-gradient(#f4f8fc, #dde8f3); }
.yylamp::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #34699e; border-width: 0 3px 3px 0; transform: rotate(40deg); }
.yylamp.on::after { border-color: #e39a1c; }
.yyicon.balloon { position: relative; width: 18px; height: 12px; margin-bottom: 3px; border-radius: 50%; background: radial-gradient(ellipse at 40% 35%, #9cc0e6, #4f86c0); box-shadow: 0 0 0 1px #fff; }
.yyicon.balloon::after { content: ""; position: absolute; left: 3px; bottom: -4px; border: 3px solid transparent; border-top-color: #4f86c0; border-left-color: #4f86c0; }
/* the board index */
.yyboards { table-layout: fixed; }
.yyboards col.c-icon { width: 5%; }
.yyboards col.c-info { width: 55%; }
.yyboards col.c-last { width: 24%; }
.yyboards col.c-num { width: 8%; }
.yyboards td.info { color: var(--text); overflow-wrap: anywhere; }
.yyboards td.info .boardname { font-size: 12px; }
.yyboards td.last { padding-left: 12px; overflow-wrap: anywhere; }
.yyboards .num { width: auto; }
.yyboards td.icon { width: auto; }
.yabb2 .yypostbtns .menusep, .yabb2 .yybuttons .menusep { color: var(--divider); }
.yylegendbar { margin: 0; }
.yyinfo td.icon { width: 5%; }
.yyinfo th.titlebg { text-align: center; }
/* topic lists and bars */
.yabb2 .yybar td.catbg { font-size: 12px; }
.yabb2 .yybar + * { margin-top: 1px; }
.yabb2 .yybuttons a:link, .yabb2 .yybuttons a:visited, .yabb2 .yybuttons .linkish { color: #fff; }
.yabb2 table.yytopics { margin-top: 1px; }
.yabb2 .yylegend-topics { margin-top: 6px; }
.yabb2 .ficon.board::after { display: none; }
/* the topic: a title row, and posts ruled within */
.yabb2 .yytitle th.author { display: none; }
.yabb2 table.yytitle { margin-top: 1px; }
.yabb2 table.yypost { margin-top: 1px; border: 1px solid var(--frame); }
.yabb2 .yypost td.poster { width: 140px; }
.yabb2 .yymsghead { padding-bottom: 4px; border-bottom: 1px solid var(--divider); }
.yabb2 .yypost hr.hr { display: none; }
.yabb2 .yymessage { padding-top: 6px; color: var(--msg); font-size: 11px; }
.yabb2 .yymessage a:link, .yabb2 .yymessage a:visited { color: var(--msglink); }
.yabb2 .yysubj { font-size: 12px; }
.yabb2 .yymsgfoot { padding-top: 5px; border-top: 1px solid var(--divider); }
.yabb2 .yystars { color: #3f4fc2; text-shadow: none; font-size: 12px; }
.yabb2 .yyname { font-size: 12px; }
.yabb2 blockquote.quote { width: 90%; margin-left: 0; padding: 4px; border-color: var(--quote-line); font: 11px Verdana, Helvetica, Arial, sans-serif; color: #000; }
.yabb2 table.yyform { margin-top: 18px; }
.yabb2 .box { background: var(--frame); border-bottom: 3px solid #eee; }
.yabb2 .box > h2.maintitle { color: #fff; }
.yabb2 table.board th { color: #fff; text-shadow: 0 0 2px #6d8eb0; }
/* the foot: the little validator buttons */
.yabb2 .copyright { color: var(--text); }
.yybadges { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.yybadges span { width: 50px; padding: 1px 0; border: 1px solid; border-color: #fff #889 #889 #fff; background: linear-gradient(#f4f6f8, #cfd6de); color: #456; font: bold 8px/11px Verdana, sans-serif; letter-spacing: 1px; text-align: center; }
@media (max-width: 760px) {
.yabb2 #container { width: auto; }
td.yywelcbar { flex-direction: column; gap: 4px; }
.yysearchbox { position: static; }
.yylogobox { flex-direction: column; gap: 4px; }
.yylogo2, .yylogo2:hover { width: auto; max-width: none; }
.yylogo2 .yylogo-name { font-size: 22px; }
.yytimenews { padding: 0; }
.yyboards col.c-num { width: 0; }
.yyboards th.num, .yyboards td.num { display: none; }
.yyboards col.c-icon { width: 30px; }
.yyboards col.c-info { width: auto; }
.yyboards col.c-last { width: 38%; }
.yyboards td.last { padding-left: 4px; }
.yabb2 .yypost td.poster { width: auto; }
}
+184
View File
@@ -0,0 +1,184 @@
/*
* The forum's YaBB 2.5 theme: YaBB 2.5's default template (its
* "Advanced Edition" look) over the yabb2 theme's pages, with a head,
* board index and topic of its own: a silver page in a grey frame, a
* glossy grey strip with the clock, glossy grey tabs with the chosen one
* lit and a search box at the right, the way here in small bold navy,
* each category under a rounded glossy title, boards on pale grey rows
* shaded at the top with a grey folder and a glowing orange orb when
* there is something new, the counts stacked beside them, and posts
* that put the poster across the top on a grey band (picture, name,
* online or not, rank, stars) over the message in small grey type, in
* rounded grey frames. Colors follow YaBB 2.5.2's yabb25.css and its
* translucent images laid over their colors; the CSS is our own and no
* images are taken.
*/
@import url("yabb2.css");
:root {
--page: #eeeeee;
--frame: #cccccc;
--grid: #b1bdc9;
--wb: #dddddd;
--wb2: #eeeeee;
--title: #b5b5b5;
--title-text: #01005f;
--cat: #aaaaa9;
--cat-text: #01005f;
--text: #000033;
--link: #333366;
--link-hover: #333366;
--nav: #000033;
--nav-hover: #333366;
--divider: #a7b8cc;
--msg: #62686f;
--msglink: #900000;
--gloss: linear-gradient(#e3e2e2, #d7d6d6 25%, #cdcdcc 48%, #b4b4b4 52%, #a4a4a3 80%, #9b9b9a);
--tab: linear-gradient(#e0e0e0, #d6d6d6 30%, #cacaca 50%, #b5b5b5 55%, #a7a7a7 80%, #9d9d9d);
--tab-on: linear-gradient(#e3e3e3, #d6d6d6 30%, #cacaca 50%, #b5b5b5 55%, #bdbdbd 75%, #c5c5c5);
}
body.yabb25 { padding-top: 5px; background: var(--page); color: var(--text); font-size: 12px; }
#maincontainer { width: 92%; margin: 0 auto 10px; }
.yabb25 #container { width: auto; padding: 0 1px; background: var(--frame); color: var(--text); }
.yabb25 a:link, .yabb25 a:visited { color: var(--link); }
.yabb25 .small { font-size: 10px; }
.yabb25 .button, .yabb25 button:not(.linkish) { padding: 1px 8px; border: 1px solid #b1bdc9; background: linear-gradient(#f7f7f7, #ececec 45%, #d3d3d3 55%, #b1b1b1); color: #000; font-size: 11px; cursor: pointer; }
/* the head */
.menutop { display: flex; align-items: center; min-height: 24px; padding: 0 2%; background: linear-gradient(#ebebeb, #dbdbdb 40%, #d1d1d1 70%, #cccccc); }
.yyclockbar { font-size: 10px; }
.yyhead25 { display: flex; align-items: center; gap: 12px; min-height: 100px; padding: 4px 8px; background: var(--wb2); }
.yylogo25, .yylogo25:hover { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; width: 600px; max-width: 60%; border: 0; text-decoration: none; }
.yyorb-logo { flex: none; width: 78px; height: 78px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 8%, #c9d6ea 18%, #6f8fc4 48%, #2d4a85 75%, #1b2f5c); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35), inset 0 -4px 8px rgba(0, 0, 0, 0.3); }
.yylogo25 .yylogo-name { display: block; color: #1f2c5c; font: bold 30px/1 "Trebuchet MS", Verdana, sans-serif; letter-spacing: -1px; text-shadow: 0 1px 0 #fff, 0 2px 3px rgba(0, 0, 0, 0.25); }
.yylogo25 .yylogo-sub { display: block; margin-top: 5px; color: #5d6b84; font: italic 12px Georgia, serif; letter-spacing: 0; text-transform: none; }
.yyhead25-right { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.yyuname { font-size: 12px; }
.yyspacer { min-height: 22px; }
.yytabrow { display: flex; align-items: stretch; height: 23px; background: var(--tab); }
.tabmenu { display: flex; flex: 1; padding-left: 40px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent 40px); }
.tabmenu > span { display: flex; align-items: center; padding: 0 14px; border-right: 1px solid #a3a3a3; border-left: 1px solid #e4e4e4; background: var(--tab); font-size: 11px; white-space: nowrap; }
.tabmenu > span:first-child { border-left-color: #a3a3a3; }
.tabmenu > span.selected { background: var(--tab-on); font-weight: bold; }
.tabmenu a:link, .tabmenu a:visited, .tabmenu .linkish { color: #000033; font-size: 11px; }
.tabmenu > span:hover { background: var(--tab-on); }
.tabmenu a:hover { color: #444; }
.rightbox { display: flex; align-items: center; gap: 3px; padding: 0 8px; border-left: 1px solid #a3a3a3; background: linear-gradient(#e1e1e1, #d2d2d2 45%, #b3b3b3 55%, #9d9d9d); }
.rightbox input { width: 110px; padding: 1px 3px; font-size: 10px; }
.rightbox .button { font-size: 10px; padding: 0 5px; }
.yynav25 { display: flex; align-items: center; min-height: 30px; padding: 0 2%; color: var(--nav); font-size: 10px; font-weight: bold; }
.yabb25 .nav a:link, .yabb25 .nav a:visited { color: var(--nav); }
.yabb25 #yymain { width: 96%; margin: 0 auto; padding-bottom: 14px; }
.yabb25 .yynotice { width: 96%; margin: 0 auto 12px; border-radius: 8px; }
/* glossy rounded title strips over each block */
.yycat25 { margin-bottom: 14px; }
.tabtitle { color: #01005f; font-size: 11px; font-weight: bold; }
.yystrip { display: flex; align-items: center; min-height: 25px; padding: 0 12px; border-radius: 9px 9px 0 0; background: var(--gloss); }
.yystrip-name { flex: 1 1 63%; }
.yystrip-last { flex: 0 0 27%; }
.yabb25 table.bordercolor { margin: 0; border-spacing: 0; background: var(--grid); }
.shadow { background: linear-gradient(#bbbbbb, #c9c9c9 3px, #dbdbdb 7px, #eeeeee 11px) #eeeeee; color: #304b58; font-size: 12px; }
.yabb25 table.bordercolor td.shadow { padding: 5px 4px; vertical-align: middle; }
.yyboards25 td.pic { width: 5%; text-align: center; }
.yyboards25 td.info { width: 54%; }
.yyboards25 td.counts { width: 10%; padding-left: 8px !important; white-space: nowrap; }
.yyboards25 td.last { width: 24%; padding-left: 12px !important; }
.yyboards25 .boardname { font-size: 12px; }
.yyboardpic { position: relative; display: inline-block; width: 34px; height: 26px; margin-top: 6px; border-radius: 2px; background: linear-gradient(#f0f0f0, #c6c6c6 40%, #8f8f8f); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.yyboardpic::before { content: ""; position: absolute; left: 0; top: -5px; width: 14px; height: 6px; border-radius: 3px 3px 0 0; background: #d9d9d9; }
.yyboardpic:hover { border: 0; }
.yyorb { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fafafa 0 15%, #b7b7b7 45%, #7b7b7b 70%, #c7c7c7 78%, #e9e9e9); box-shadow: 0 0 1px #888; }
.yyorb.on { background: radial-gradient(circle at 50% 45%, #fff6b0 0 15%, #ffc400 40%, #e07a00 68%, #e9b46a 78%, #f7e2c4); box-shadow: 0 0 3px rgba(255, 160, 0, 0.8); }
.yyicon.cat25 { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #fff 0 15%, #8a95b8 55%, #3c4878); vertical-align: -1px; }
.yyinfo25 td.icon { width: 5%; text-align: center; }
.yyicon.info25 { position: relative; width: 26px; height: 20px; border-radius: 50%; background: radial-gradient(ellipse at 40% 35%, #f0f0f0, #9a9a9a); }
.yyicon.info25::before { content: "i"; position: absolute; inset: 0; color: #555; font: bold italic 13px/20px Georgia, serif; text-align: center; }
.yyicon.people25 { width: 26px; height: 20px; background: radial-gradient(circle at 8px 5px, #9b9b9b 0 3.5px, transparent 4px), radial-gradient(circle at 18px 5px, #b0b0b0 0 3.5px, transparent 4px), radial-gradient(ellipse 6px 9px at 8px 19px, #8a8a8a 0 99%, transparent), radial-gradient(ellipse 6px 9px at 18px 19px, #a5a5a5 0 99%, transparent); }
.useronline { color: #138a03 !important; font-weight: bold; }
.useroffline { color: #818281; font-weight: bold; }
.yylegend25 { margin-bottom: 14px !important; }
/* rounded grey frames: bars, titles and posts */
.displaycontainer { margin-bottom: 1px; padding: 1px; border-radius: 10px; background: var(--frame); }
.displaycontainer > :first-child { border-radius: 9px 9px 0 0; }
.displaycontainer > :last-child { border-radius: 0 0 9px 9px; }
.displaycontainer > :only-child { border-radius: 9px; }
.yabb25 .catbg { background: linear-gradient(#a2a2a2, #bbbbba 4%, #aaaaaa 30%, #9d9d9c 50%, #aaaaaa 70%, #afafaf); color: #01005f; font-size: 11px; text-shadow: none; }
.yabb25 .titlebg { background: #b5b5b5; color: #01005f; font-size: 11px; }
.yabb25 .catbg a:link, .yabb25 .catbg a:visited, .yabb25 .titlebg a:link, .yabb25 .titlebg a:visited, .yabb25 .yybuttons a:link, .yabb25 .yybuttons a:visited, .yabb25 .yybuttons .linkish { color: #01005f; }
.yybar25 .catbg { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 5px 10px; }
.yybar25 { margin-bottom: 8px; }
.yybar25:has(+ .yytitle25), .yybar25:has(+ .yypoll25) { margin-bottom: 8px; }
.yytitle25 .titlebg { padding: 6px 10px; }
.yytitle25 { margin-bottom: 8px; }
.yydoc, .yabb25 .ficon { position: relative; display: inline-block; width: 12px; height: 15px; margin: 0 2px; vertical-align: -3px; border: 1px solid #6aa0ad; border-radius: 0 4px 0 0; background: linear-gradient(135deg, #f4fbfd, #cbe3ea); box-shadow: none; }
.yydoc.hot, .yabb25 .ficon.hot, .yabb25 .ficon.veryhot { border-color: #d0700a; background: linear-gradient(135deg, #ffd27a, #f08a10); }
.yabb25 .ficon::before, .yabb25 .ficon::after, .yabb25 .ficon.hot::after, .yabb25 .ficon.veryhot::after { display: none; }
.yypost25 { margin-bottom: 10px; }
.yydate25 { padding: 5px 8px; }
.yydate25 a:link, .yydate25 a:visited { color: #01005f; }
.userinfo { display: flex; align-items: center; gap: 10px; padding: 6px 8px; background: linear-gradient(#aeadad, #c7c7c7 12%, #d8d7d7 25%, #e8e7e7 45%, #ebebeb 55%, #e0e0e0 80%, #d2d2d2); color: #304b58; }
.yyuserleft { flex: 1; line-height: 1.5; }
.yyname25 { font-size: 12px; }
.yyuserright { flex: 0 0 15%; line-height: 1.5; }
.yabb25 .yystars { color: #2c6fd6; text-shadow: 0 0 1px #0d3a8a; font-size: 12px; }
.yabb25 .yyuserpic .avatar.large { width: 56px; height: 56px; font-size: 26px; border: 1px solid #999; }
.yybody25 { display: flow-root; padding: 6px 8px; }
.yabb25 .windowbg { background: var(--wb); }
.yabb25 .windowbg2 { background: var(--wb2); }
.yybody25 .yypostbtns { float: right; display: flex; gap: 3px; margin: 0 0 6px 10px; }
.yybtn, .yabb25 button.yybtn { display: inline-block; padding: 1px 6px; border: 1px solid #a8a8a8; border-radius: 3px; background: linear-gradient(#fafafa, #e3e3e3 50%, #cfcfcf 51%, #dcdcdc); color: #000033 !important; font: 10px Verdana, sans-serif; cursor: pointer; }
.yybtn:hover { border-color: #777; }
.yabb25 .yymessage { min-height: 50px; padding-top: 2px; color: var(--msg); font-size: 8pt; }
.yylikes { color: #555; }
.yabb25 .yymsgfoot { display: flex; justify-content: space-between; margin-top: 6px; padding-top: 5px; border-top: 1px solid var(--divider); }
.yabb25 blockquote.quote { background: #e8ebef; border-color: #34689a; }
/* polls and the quick reply */
.yypollbody, .yyformbody { padding: 8px 10px; }
.yypollres { width: 100%; margin-bottom: 6px; }
.yypollres td { padding: 2px 4px; }
.yypollres .answer { width: 30%; }
.yypollres .bar { width: 50%; }
.yypollres meter { width: 100%; }
.yypoll25 { margin-bottom: 8px; }
.yypoll25 .titlebg, .yyform25 .titlebg { padding: 6px 10px; }
.yyform25 { display: block; margin-top: 14px; }
.yyformbody { display: flex; flex-direction: column; gap: 5px; }
.yyformbody textarea { width: 100%; max-width: 640px; }
.yyformfoot { text-align: center; }
/* yabb1's pages under this frame: tables with rounded heads */
.yabb25 table.yybar { border-radius: 9px; overflow: hidden; margin-bottom: 8px; }
.yabb25 table.yytopics, .yabb25 table.yyprofile { border-spacing: 1px; border-radius: 9px 9px 0 0; overflow: hidden; }
.yabb25 table.yytopics th.titlebg, .yabb25 table.yyprofile th.titlebg { background: var(--gloss); }
.yabb25 .yylegend-topics { margin-top: 8px; }
.yabb25 .box { border-radius: 9px; border-bottom: 0; overflow: hidden; }
.yabb25 .box > h2.maintitle { background: var(--gloss); color: #01005f; font-size: 11px; }
.yabb25 table.board th { background: #b5b5b5; color: #01005f; text-shadow: none; font-size: 11px; }
.yabb25 table.board td { background: var(--wb2); }
/* the foot */
.yyfootbar { justify-content: space-between; gap: 10px; min-height: 26px; flex-wrap: wrap; background: var(--gloss); }
.yyfootbar .themepicker { font-weight: normal; }
.yabb25 .copyright { color: #62686f; }
.yabb25 .copyright a:link, .yabb25 .copyright a:visited { color: #333366; }
@media (max-width: 760px) {
#maincontainer { width: auto; margin: 0 4px; }
.yyhead25 { flex-direction: column; align-items: flex-start; min-height: 0; }
.yylogo25, .yylogo25:hover { width: auto; max-width: none; }
.yyorb-logo { width: 44px; height: 44px; }
.yylogo25 .yylogo-name { font-size: 22px; }
.yytabrow { height: auto; flex-wrap: wrap; }
.tabmenu { flex-wrap: wrap; padding-left: 0; }
.tabmenu > span { min-height: 23px; padding: 0 9px; }
.rightbox { flex: 1 0 100%; min-height: 26px; border-left: 0; }
.yabb25 #yymain { width: auto; margin: 0 4px; }
.yystrip-last, .yyboards25 td.counts, .yyboards25 td.pic { display: none; }
.yyboards25 td.last { width: 38%; padding-left: 4px !important; }
.userinfo { flex-wrap: wrap; }
.yyuserright { flex-basis: 100%; }
}
+40
View File
@@ -0,0 +1,40 @@
{{define "area.html"}}{{template "head" .}}
{{$b := .Body}}
{{template "crumbs" .}}
<table class="bordercolor yybar"><tr><td class="catbg">
{{template "pages" $b.Pages}}
<span class="yybuttons">{{if $b.CanPost}}<a href="/forum/area/{{$b.Area.ID}}/new">Start new topic</a>{{end}}{{if .User}}{{if $b.CanPost}}<span class="menusep"> | </span>{{end}}<form method="post" action="/forum/area/{{$b.Area.ID}}/read" class="inline-form"><input type="hidden" name="csrf" value="{{.CSRF}}"><button class="linkish">Mark as read</button></form>{{end}}</span>
</td></tr></table>
<table class="bordercolor yytopics">
<thead><tr>
<th class="titlebg" colspan="2">&nbsp;</th>
<th class="titlebg subject">Subject</th>
<th class="titlebg starter">Started by</th>
<th class="titlebg num">Replies</th>
<th class="titlebg last">Last post</th>
</tr></thead>
<tbody>
{{range $t := $b.Topics}}
<tr>
<td class="windowbg2 icon"><span class="ficon{{if ge $t.Replies 25}} veryhot{{else if ge $t.Replies 15}} hot{{end}}"></span></td>
<td class="windowbg2 icon micon"><span class="yyicon xx"></span></td>
<td class="windowbg subject">{{if $t.Unread}}<a href="/forum/post/{{$t.Last.ID}}" class="yynew">new</a> {{end}}<a href="/forum/topic/{{$t.Root.ID}}"><b>{{$t.Root.Subject}}</b></a>{{if gt $t.Pages 1}} <span class="small">&laquo; {{range (seq $t.Pages)}}<a href="/forum/topic/{{$t.Root.ID}}{{if gt . 1}}?page={{.}}{{end}}">{{.}}</a> {{end}}&raquo;</span>{{end}}</td>
<td class="windowbg2 starter small">{{$t.Root.From}}</td>
<td class="windowbg num">{{num $t.Replies}}</td>
<td class="windowbg2 last small"><a href="/forum/post/{{$t.Last.ID}}">{{template "yydate" $t.Last.Created}}</a><br>by {{$t.Last.From}}</td>
</tr>
{{else}}
<tr><td class="windowbg2 none" colspan="6">There are no topics in this board yet.</td></tr>
{{end}}
</tbody>
</table>
<table class="bordercolor yybar"><tr><td class="catbg">
{{template "pages" $b.Pages}}
<span class="yybuttons">{{if $b.CanPost}}<a href="/forum/area/{{$b.Area.ID}}/new">Start new topic</a>{{end}}</span>
</td></tr></table>
<div class="yylegend-topics small">
<span><span class="ficon"></span> Normal Topic</span>
<span><span class="ficon hot"></span> Hot Topic (More than 15 Replies)</span>
<span><span class="ficon veryhot"></span> Very Hot Topic (More than 25 Replies)</span>
</div>
{{template "foot" .}}{{end}}
+47
View File
@@ -0,0 +1,47 @@
{{define "index.html"}}{{template "head" .}}
{{$st := .Body.Stats}}
{{template "crumbs" .}}
<table class="bordercolor yyboards">
<thead><tr>
<th class="titlebg" colspan="2">Forum name</th>
<th class="titlebg num">Topics</th>
<th class="titlebg num">Posts</th>
<th class="titlebg last">Last post</th>
</tr></thead>
{{range $c := .Body.Categories}}
<tbody>
<tr><td colspan="5" class="catbg yycat">{{$c.Name}}</td></tr>
{{range $f := $c.Forums}}
<tr class="yyboard">
<td class="windowbg icon"><span class="ficon board{{if $f.Unread}} on{{end}}" title="{{if $f.Unread}}New Posts{{else}}No New Posts{{end}}"></span></td>
<td class="windowbg2 info"><a href="/forum/area/{{$f.Area.ID}}" class="boardname"><b>{{$f.Area.Name}}</b></a>{{if $f.Area.Description}}<div class="small">{{$f.Area.Description}}</div>{{end}}<div class="small"><i>Moderator: N/A</i></div></td>
<td class="windowbg num">{{num $f.Topics}}</td>
<td class="windowbg num">{{num $f.Area.Messages}}</td>
<td class="windowbg2 last small">{{with $f.Last}}<a href="/forum/post/{{.ID}}">{{template "yydate" .Created}}</a><br>by {{.From}}{{else}}N/A{{end}}</td>
</tr>
{{end}}
</tbody>
{{end}}
{{if .User}}<tfoot><tr><td colspan="5" class="catbg"><div class="yylegend">
<span class="small"><span class="ficon board on"></span> New Posts &nbsp; <span class="ficon board"></span> No New Posts</span>
<span class="small"><a href="/forum/search">Show new posts</a></span>
</div></td></tr></tfoot>{{end}}
</table>
<table class="bordercolor yyinfo">
<tr><th class="titlebg" colspan="2">Info Center</th></tr>
<tr><td class="catbg" colspan="2">Forum Statistics</td></tr>
<tr>
<td class="windowbg icon"><span class="yyicon info"></span></td>
<td class="windowbg2 small"><div class="yycols">
<div>Total Topics: <b>{{num $st.Topics}}</b> &nbsp; - &nbsp; Total Posts: <b>{{num $st.Posts}}</b></div>
<div>Total Members: <a href="/forum/online"><b>{{num $st.Members}}</b></a>{{with $st.Newest}}<br>Newest Member: <a href="/forum/user/{{path .Name}}"><b>{{.Name}}</b></a>{{end}}</div>
</div></td>
</tr>
<tr><td class="catbg" colspan="2">Users online</td></tr>
<tr>
<td class="windowbg icon"><span class="yyicon online"></span></td>
<td class="windowbg2 small">0 Guests, {{len .Body.Online}} Users{{if .Body.Online}}<br>{{range $i, $n := .Body.Online}}{{if $i}}, {{end}}<a href="/forum/user/{{path $n.User}}">{{$n.User}}</a>{{end}}{{end}}</td>
</tr>
</table>
{{template "foot" .}}{{end}}
+51
View File
@@ -0,0 +1,51 @@
{{define "head"}}<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{if eq .Title .BBS}}{{.BBS}}{{else}}{{.Title}}{{end}}</title>
<link rel="stylesheet" href="/forum/static/{{.Theme}}.css">
</head>
<body class="yabb">
<div id="container">
<table class="bordercolor yyheader">
<tr>
<td class="windowbg2 yylogo"><a href="/forum/"><span class="yylogo-name">{{.BBS}}</span><span class="yylogo-sub">forum</span></a></td>
<td class="windowbg2 yywelcome">
{{if .User}}Hey, <b>{{.User.Name}}</b>, you have <a href="/forum/search">new posts</a> to read.{{else}}Welcome, Guest. Please <a href="/forum/login">login</a>{{if .Register}} or <a href="/forum/register">register</a>{{end}}.{{end}}<br>
<span class="yytime">{{template "yydate" .Now}}</span>
<div class="yynews"><b>News:</b> Dial in, log on, say hello.</div>
</td>
</tr>
<tr>
<td class="catbg yymenu" colspan="2">
<a href="/forum/">Home</a><span class="menusep"> | </span><a href="/forum/search">Search</a><span class="menusep"> | </span><a href="/forum/online">Members</a>{{if .Terminal}}<span class="menusep"> | </span><a href="/terminal">Terminal</a>{{end}}{{if .User}}<span class="menusep"> | </span><a href="/forum/user/{{path .User.Name}}">Profile</a><span class="menusep"> | </span><form method="post" action="/forum/logout" class="inline-form"><input type="hidden" name="csrf" value="{{.CSRF}}"><button class="linkish">Logout</button></form>{{else}}<span class="menusep"> | </span><a href="/forum/login">Login</a>{{if .Register}}<span class="menusep"> | </span><a href="/forum/register">Register</a>{{end}}{{end}}
</td>
</tr>
</table>
{{if and (eq .Notice "welcome") .User}}<div class="yynotice"><b>Registration successful.</b> Welcome to {{.BBS}}, {{.User.Name}}.</div>{{end}}
<div id="yymain">
{{end}}
{{define "crumbs"}}<div class="yytree nav">
<div class="yytree-row"><span class="ficon open"></span> {{if .Crumbs}}<a href="/forum/" class="nav">{{.BBS}}</a>{{else}}<b>{{.BBS}}</b>{{end}}</div>
{{range $i, $c := .Crumbs}}<div class="yytree-row d{{add $i 1}}"><span class="tline"></span><span class="ficon open"></span> {{if $c.URL}}<a href="{{$c.URL}}" class="nav">{{$c.Name}}</a>{{else}}<b>{{$c.Name}}</b>{{end}}</div>{{end}}
</div>{{end}}
{{define "foot"}}
</div>
<div class="copyright">
<div class="yyfoot-theme">{{template "themepicker" .}}</div>
<a href="/forum/online">Who's online</a>{{if .Terminal}} | <a href="/terminal">Web terminal</a>{{end}}<br>
{{.BBS}} &raquo; Powered by bbs-sec
</div>
</div>
</body>
</html>
{{end}}
{{define "pages"}}<span class="yypages"><b>Pages:</b> {{$cur := .Cur}}{{$p := .}}{{if gt .Total 1}}{{range .Shown}}{{if eq . 0}}&#8230; {{else if eq . $cur}}[<b>{{.}}</b>] {{else}}<a href="{{$p.URL .}}">{{.}}</a> {{end}}{{end}}{{else}}[<b>1</b>]{{end}}</span>{{end}}
{{define "yyrank"}}{{if .Sysop}}Administrator{{else if ge .Posts 500}}Forum God{{else if ge .Posts 250}}Senior Member{{else if ge .Posts 100}}Full Member{{else if ge .Posts 50}}Junior Member{{else}}Newbie{{end}}{{end}}
{{define "yystars"}}<span class="yystars" title="{{template "yyrank" .}}">{{if .Sysop}}&#9733;&#9733;&#9733;&#9733;&#9733;{{else if ge .Posts 500}}&#9733;&#9733;&#9733;&#9733;&#9733;{{else if ge .Posts 250}}&#9733;&#9733;&#9733;&#9733;{{else if ge .Posts 100}}&#9733;&#9733;&#9733;{{else if ge .Posts 50}}&#9733;&#9733;{{else}}&#9733;{{end}}</span>{{end}}
{{define "yydate"}}{{yabbdate .}}{{end}}
+23
View File
@@ -0,0 +1,23 @@
{{define "profile.html"}}{{template "head" .}}
{{$u := .Body.U}}
{{template "crumbs" .}}
<table class="bordercolor yyprofile">
<tr><th class="titlebg" colspan="2"><span class="yyicon profile"></span> View Profile: {{$u.Name}}</th></tr>
<tr><td class="windowbg label"><b>Name:</b></td><td class="windowbg">{{$u.Name}}</td></tr>
<tr><td class="windowbg label"><b>Posts:</b></td><td class="windowbg">{{num $u.Posts}}</td></tr>
<tr><td class="windowbg label"><b>Position:</b></td><td class="windowbg">{{template "yyrank" $u}} {{template "yystars" $u}}</td></tr>
<tr><td class="windowbg label"><b>Date Registered:</b></td><td class="windowbg">{{template "yydate" $u.Created}}</td></tr>
<tr><td class="windowbg label"><b>Last visit:</b></td><td class="windowbg">{{template "yydate" $u.LastLogin}}</td></tr>
<tr><td class="windowbg label"><b>Calls:</b></td><td class="windowbg">{{num $u.Logins}}</td></tr>
<tr><td class="windowbg label"><b>Location:</b></td><td class="windowbg">{{if $u.Location}}{{$u.Location}}{{else}}N/A{{end}}</td></tr>
<tr><td class="windowbg label"><b>Status:</b></td><td class="windowbg">{{if .Body.On}}Online{{range .Body.On}} (node {{.Num}} by {{.Via}}: {{.Activity}}){{end}}{{else}}Offline{{end}}</td></tr>
<tr><td class="windowbg2 label"><b>Personal Text:</b></td><td class="windowbg2">{{if $u.About}}{{$u.About}}{{else}}&nbsp;{{end}}</td></tr>
<tr><td class="windowbg2 label"><b>Picture:</b></td><td class="windowbg2">{{template "avatar" (av $u.Name "huge")}}</td></tr>
<tr><td class="catbg" colspan="2">Most recent posts</td></tr>
{{range $r := .Body.Recent}}
<tr><td class="windowbg label small">{{template "yydate" $r.Created}}</td><td class="windowbg2"><a href="/forum/post/{{$r.ID}}"><b>{{$r.Subject}}</b></a><div class="small">{{snippet $r.Body 160}}</div></td></tr>
{{else}}
<tr><td class="windowbg2" colspan="2">No posts yet.</td></tr>
{{end}}
</table>
{{template "foot" .}}{{end}}
+89
View File
@@ -0,0 +1,89 @@
{{define "topic.html"}}{{template "head" .}}
{{$b := .Body}}{{$csrf := .CSRF}}{{$me := .User}}
{{template "crumbs" .}}
<table class="bordercolor yybar"><tr><td class="catbg">
{{template "pages" $b.Pages}}
<span class="yybuttons">{{if $b.CanPost}}<a href="#yyreply">Reply</a>{{end}}</span>
</td></tr></table>
{{with $b.Poll}}
<table class="bordercolor yypoll">
<tr><th class="titlebg" colspan="3"><span class="yyicon poll"></span> Poll: {{$b.Root.Subject}}</th></tr>
{{if or .Voted (not $me)}}
{{range $i, $a := .Answers}}<tr>
<td class="windowbg2 answer"><b>{{$a.Text}}</b>{{if $a.Mine}} <span class="small">(your vote)</span>{{end}}</td>
<td class="windowbg2 bar"><meter min="0" max="100" value="{{$a.Pct}}"></meter></td>
<td class="windowbg2 votes small">{{$a.Count}} ({{$a.Pct}}%)</td>
</tr>{{end}}
<tr><td class="windowbg small" colspan="3">Total votes: <b>{{.Total}}</b>{{if not $me}} &middot; <a href="/forum/login">Login</a> to vote{{end}}</td></tr>
{{end}}
{{if $me}}<tr><td class="windowbg2" colspan="3">
<form method="post" action="/forum/post/{{.ID}}/answer" class="pollvote">
<input type="hidden" name="csrf" value="{{$csrf}}">
<b>{{if .Voted}}Change your vote{{else}}Cast your vote{{end}}:</b>
{{range .Answers}}<label><input type="radio" name="answer" value="{{.Index}}"{{if .Mine}} checked{{end}}> {{.Text}}</label>{{end}}
<button>Vote</button>
</form>
</td></tr>{{end}}
</table>
{{end}}
<table class="bordercolor yytitle"><tr>
<th class="titlebg author"><span class="ficon{{if ge $b.Count 26}} veryhot{{else if ge $b.Count 16}} hot{{end}}"></span> Author</th>
<th class="titlebg">Topic: {{$b.Root.Subject}} &nbsp;<span class="yyread">({{plural $b.Count "post" "posts"}})</span></th>
</tr></table>
{{range $b.Posts}}
<table class="bordercolor yypost {{if odd .Num}}alt1{{else}}alt2{{end}}" id="entry{{.M.ID}}">
<tr>
<td class="poster small" rowspan="2">
<div class="yyname">{{if .Author}}<a href="/forum/user/{{path .Author.Name}}"><b>{{.M.From}}</b></a>{{else}}<b>{{.M.From}}</b>{{end}}</div>
{{if .Author}}<div>{{template "yyrank" .Author}}</div>
<div>{{template "yystars" .Author}}</div>
<div class="yypic">{{template "avatar" (av .M.From "large")}}</div>
{{if .Author.Location}}<div>{{.Author.Location}}</div>{{end}}
<div class="yyposts">Posts: {{num .Author.Posts}}</div>{{else}}<div>Guest</div>{{if .Where}}<div>{{.Where}}</div>{{end}}{{end}}
</td>
<td class="msg">
<div class="yymsghead">
<span class="yyicon xx"></span>
<div class="yysubj"><b>{{if ne .Num 1}}Re: {{end}}{{$b.Root.Subject}}</b><br><span class="small">&laquo; <b>{{if ne .Num 1}}Reply #{{add .Num -1}} {{end}}on:</b> <a href="/forum/post/{{.M.ID}}">{{template "yydate" .M.Created}}</a> &raquo;</span></div>
<div class="yypostbtns small">
{{if $b.CanPost}}<a href="/forum/topic/{{$b.Root.ID}}?quote={{.M.ID}}{{if gt $b.Pages.Cur 1}}&amp;page={{$b.Pages.Cur}}{{end}}#yyreply">Quote</a>{{end}}
{{if .CanLike}}<span class="menusep"> | </span><form method="post" action="/forum/post/{{.M.ID}}/like" class="inline-form"><input type="hidden" name="csrf" value="{{$csrf}}"><input type="hidden" name="like" value="{{if .Liked}}0{{else}}1{{end}}"><button class="linkish">{{if .Liked}}Unlike{{else}}Like{{end}}</button></form>{{end}}
{{if .CanDelete}}<span class="menusep"> | </span><form method="post" action="/forum/post/{{.M.ID}}/delete" class="inline-form"><input type="hidden" name="csrf" value="{{$csrf}}"><button class="linkish">Remove</button></form>{{end}}
</div>
</div>
<hr class="hr">
<div class="yymessage">{{body .M.Body}}</div>
</td>
</tr>
<tr>
<td class="msgfoot small">
<div class="yymsgfoot"><span>{{if .Likes}}&laquo; <i>{{plural .Likes "member likes" "members like"}} this post</i> &raquo;{{end}}</span><span class="yyip"><span class="yyicon ip"></span> Logged</span></div>
</td>
</tr>
</table>
{{end}}
<table class="bordercolor yybar"><tr><td class="catbg">
{{template "pages" $b.Pages}}
<span class="yybuttons">{{if $b.CanPost}}<a href="#yyreply">Reply</a>{{end}}</span>
</td></tr></table>
{{if $b.CanPost}}
<form method="post" action="/forum/topic/{{$b.Root.ID}}/reply" id="yyreply">
<input type="hidden" name="csrf" value="{{.CSRF}}">
{{if $b.QuoteID}}<input type="hidden" name="reply_to" value="{{$b.QuoteID}}">{{end}}
<table class="bordercolor yyform">
<tr><th class="titlebg" colspan="2">Post reply</th></tr>
<tr><td class="windowbg label"><b>Subject:</b></td><td class="windowbg">Re: {{$b.Root.Subject}}</td></tr>
<tr><td class="windowbg label"><b>Message:</b></td><td class="windowbg"><textarea name="body" rows="8" required aria-label="Message">{{$b.Quote}}</textarea><div class="small">Quote with &gt; at the start of a line.</div></td></tr>
{{if $b.Aliases}}<tr><td class="windowbg label"><b>Post as:</b></td><td class="windowbg"><label><input type="checkbox" name="alias"> {{$me.Alias}}</label></td></tr>{{end}}
<tr><td class="windowbg buttons" colspan="2"><button>Post</button></td></tr>
</table>
</form>
{{else if not .User}}
<p class="yynotice">Please <a href="/forum/login?back={{urlq (printf "/forum/topic/%d" $b.Root.ID)}}">login</a> to reply to this topic.</p>
{{end}}
{{template "foot" .}}{{end}}
+59
View File
@@ -0,0 +1,59 @@
{{define "index.html"}}{{template "head" .}}
{{$st := .Body.Stats}}
{{template "crumbs" .}}
<div class="seperator">
<table class="bordercolor yyboards yyboardhead">
<colgroup><col class="c-icon"><col class="c-info"><col class="c-last"><col class="c-num"><col class="c-num"></colgroup>
<thead><tr>
<th class="titlebg" colspan="2">Forum name</th>
<th class="titlebg last">Last post</th>
<th class="titlebg num">Topics</th>
<th class="titlebg num">Posts</th>
</tr></thead>
</table>
</div>
{{range $c := .Body.Categories}}
<div class="boardcontainer">
<table class="bordercolor yyboards">
<colgroup><col class="c-icon"><col class="c-info"><col class="c-last"><col class="c-num"><col class="c-num"></colgroup>
<tr><td colspan="5" class="catbg yycat"><span class="yyicon balloon"></span> {{$c.Name}}</td></tr>
{{range $f := $c.Forums}}
<tr class="yyboard">
<td class="windowbg icon"><span class="yylamp{{if $f.Unread}} on{{end}}" title="{{if $f.Unread}}New Posts{{else}}No New Posts{{end}}"></span></td>
<td class="windowbg2 info"><a href="/forum/area/{{$f.Area.ID}}" class="boardname"><b>{{$f.Area.Name}}</b></a>{{if $f.Area.Description}}<div>{{$f.Area.Description}}</div>{{end}}<div class="small"><i>Moderator: N/A</i></div></td>
<td class="windowbg last small">{{with $f.Last}}<a href="/forum/post/{{.ID}}">{{template "yydate" .Created}}</a><br><b>Topic:</b> {{with $f.LastTopic}}<a href="/forum/topic/{{.ID}}">{{truncate .Subject 25}}</a>{{else}}<a href="/forum/post/{{.ID}}">{{truncate .Subject 25}}</a>{{end}}<br><b>by:</b> {{.From}}{{else}}N/A{{end}}</td>
<td class="windowbg2 num">{{num $f.Topics}}</td>
<td class="windowbg2 num">{{num $f.Area.Messages}}</td>
</tr>
{{end}}
</table>
</div>
{{end}}
{{if .User}}
<div class="seperator">
<table class="bordercolor yylegendbar"><tr><td class="catbg"><div class="yylegend">
<span class="small"><span class="yylamp on"></span> New Posts &nbsp; <span class="yylamp"></span> No New Posts</span>
<span class="small"><a href="/forum/search">Show new posts</a></span>
</div></td></tr></table>
</div>
{{end}}
<div class="seperator">
<table class="bordercolor yyinfo">
<tr><th class="titlebg" colspan="2">Info Center</th></tr>
<tr><td class="catbg" colspan="2">Forum Statistics</td></tr>
<tr>
<td class="windowbg icon"><span class="yyicon info"></span></td>
<td class="windowbg2 small"><div class="yycols">
<div><b>{{num $st.Posts}} Posts</b> in <b>{{num $st.Topics}} Topics</b>.</div>
<div>{{num $st.Members}} Members.{{with $st.Newest}}<br>Latest Member: <a href="/forum/user/{{path .Name}}"><b>{{.Name}}</b></a>{{end}}</div>
</div></td>
</tr>
<tr><td class="catbg" colspan="2">Users Online</td></tr>
<tr>
<td class="windowbg icon"><span class="yyicon online"></span></td>
<td class="windowbg2 small">Users: {{len .Body.Online}}{{if .Body.Online}}<br>{{range $i, $n := .Body.Online}}{{if $i}}, {{end}}<a href="/forum/user/{{path $n.User}}">{{$n.User}}</a>{{end}}{{end}}<br>Guests: 0</td>
</tr>
</table>
</div>
{{template "foot" .}}{{end}}
+54
View File
@@ -0,0 +1,54 @@
{{define "head"}}<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{if eq .Title .BBS}}{{.BBS}}{{else}}{{.Title}}{{end}}</title>
<link rel="stylesheet" href="/forum/static/{{.Theme}}.css">
</head>
<body class="yabb yabb2">
<div id="container">
<div class="seperator yyhead2">
<table class="yyheadtable">
<tr>
<td class="titlebg yywelcbar">
<div class="headerwelc">{{if .User}}Hey, <a href="/forum/user/{{path .User.Name}}">{{.User.Name}}</a>, you have <a href="/forum/search">new posts</a> to read.{{else}}Welcome, Guest. Please <a href="/forum/login">login</a>{{if .Register}} or <a href="/forum/register">register</a>{{end}}.{{end}}</div>
<form method="get" action="/forum/search" class="yysearchbox"><input type="search" name="q" aria-label="Search" placeholder="Search"><button>Search</button></form>
</td>
</tr>
<tr>
<td class="windowbg2 yylogorow">
<div class="yylogobox">
<a href="/forum/" class="yylogo2"><span class="yylogo-name">{{.BBS}}</span><span class="yylogo-sub">Yet another bulletin board</span></a>
<div class="yytimenews">
<div class="yytime">{{template "yydate" .Now}}</div>
<div class="yynews"><b>News:</b> Dial in, log on, say hello.</div>
</div>
</div>
<div class="yymenu2">
<a href="/forum/"{{if eq .Page "index.html"}} class="selected"{{end}}>Home</a><a href="/forum/search"{{if eq .Page "search.html"}} class="selected"{{end}}>Search</a><a href="/forum/online"{{if eq .Tab "online"}} class="selected"{{end}}>Members</a>{{if .Terminal}}<a href="/terminal">Terminal</a>{{end}}{{if .User}}<a href="/forum/user/{{path .User.Name}}"{{if eq .Page "profile.html"}} class="selected"{{end}}>Profile</a><form method="post" action="/forum/logout" class="inline-form"><input type="hidden" name="csrf" value="{{.CSRF}}"><button class="linkish">Logout</button></form>{{else}}<a href="/forum/login">Login</a>{{if .Register}}<a href="/forum/register">Register</a>{{end}}{{end}}
</div>
</td>
</tr>
</table>
</div>
{{if and (eq .Notice "welcome") .User}}<div class="yynotice"><b>Registration successful.</b> Welcome to {{.BBS}}, {{.User.Name}}.</div>{{end}}
<div id="yymain">
{{end}}
{{define "crumbs"}}<div class="navbarcontainer"><span class="nav">{{if .Crumbs}}<a href="/forum/">{{.BBS}}</a>{{else}}{{.BBS}}{{end}}{{range .Crumbs}} &rsaquo; {{if .URL}}<a href="{{.URL}}">{{.Name}}</a>{{else}}{{.Name}}{{end}}{{end}}</span></div>{{end}}
{{define "foot"}}
</div>
<div class="copyright">
<div class="yyfoot-theme">{{template "themepicker" .}}</div>
<a href="/forum/online">Who's online</a>{{if .Terminal}} | <a href="/terminal">Web terminal</a>{{end}}<br>
{{.BBS}} &raquo; Powered by bbs-sec
<div class="yybadges"><span>XHTML</span><span>CSS</span><span>Go</span></div>
</div>
</div>
</body>
</html>
{{end}}
{{define "yydate"}}{{yabb2date .}}{{end}}
+46
View File
@@ -0,0 +1,46 @@
{{define "index.html"}}{{template "head" .}}
{{$st := .Body.Stats}}
{{range $c := .Body.Categories}}
<div class="yycat25">
<div class="tabtitle yystrip"><span class="yystrip-name"><span class="yyicon cat25"></span> {{$c.Name}}</span><span class="yystrip-last">Last post</span></div>
<table class="bordercolor yyboards25">
{{range $f := $c.Forums}}
<tr>
<td class="shadow pic"><a href="/forum/area/{{$f.Area.ID}}" class="yyboardpic" aria-hidden="true" tabindex="-1"></a></td>
<td class="shadow info"><span class="yyorb{{if $f.Unread}} on{{end}}" title="{{if $f.Unread}}New Posts{{else}}No New Posts{{end}}"></span> <a href="/forum/area/{{$f.Area.ID}}" class="boardname"><b>{{$f.Area.Name}}</b></a>{{if $f.Area.Description}}<div>{{$f.Area.Description}}</div>{{end}}<div class="small"><i>Moderator: N/A</i></div></td>
<td class="shadow counts small"><b>Topics:</b> {{num $f.Topics}}<br><b>Posts:</b> {{num $f.Area.Messages}}</td>
<td class="shadow last small">{{with $f.Last}}<a href="/forum/post/{{.ID}}">{{template "yydate" .Created}}</a><br><b>Topic:</b> {{with $f.LastTopic}}<a href="/forum/topic/{{.ID}}">{{truncate .Subject 25}}</a>{{else}}<a href="/forum/post/{{.ID}}">{{truncate .Subject 25}}</a>{{end}}<br><b>by:</b> {{.From}}{{else}}N/A{{end}}</td>
</tr>
{{end}}
</table>
</div>
{{end}}
{{if .User}}
<table class="bordercolor yylegend25"><tr><td class="shadow"><div class="yylegend">
<span class="small"><span class="yyorb on"></span> New Posts &nbsp; <span class="yyorb"></span> No New Posts</span>
<span class="small"><a href="/forum/search">Show new posts</a></span>
</div></td></tr></table>
{{end}}
<div class="yycat25">
<div class="tabtitle yystrip"><span class="yystrip-name">Forum Statistics</span></div>
<table class="bordercolor yyinfo25">
<tr>
<td class="shadow icon"><span class="yyicon info25"></span></td>
<td class="shadow small"><div class="yycols">
<div><b>{{num $st.Posts}} Posts</b> in <b>{{num $st.Topics}} Topics</b>.</div>
<div>{{num $st.Members}} Members.{{with $st.Newest}}<br>Latest Member: <a href="/forum/user/{{path .Name}}"><b>{{.Name}}</b></a>{{end}}</div>
</div></td>
</tr>
</table>
</div>
<div class="yycat25">
<div class="tabtitle yystrip"><span class="yystrip-name">Users Online</span></div>
<table class="bordercolor yyinfo25">
<tr>
<td class="shadow icon"><span class="yyicon people25"></span></td>
<td class="shadow small">Users: {{len .Body.Online}}{{if .Body.Online}}<br>{{range $i, $n := .Body.Online}}{{if $i}}, {{end}}<a href="/forum/user/{{path $n.User}}" class="useronline">{{$n.User}}</a>{{end}}{{end}}<br>Guests: 0<br>Bots: 0</td>
</tr>
</table>
</div>
{{template "foot" .}}{{end}}
+47
View File
@@ -0,0 +1,47 @@
{{define "head"}}<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{if eq .Title .BBS}}{{.BBS}}{{else}}{{.Title}}{{end}}</title>
<link rel="stylesheet" href="/forum/static/{{.Theme}}.css">
</head>
<body class="yabb yabb2 yabb25">
<div id="maincontainer">
<div id="container">
<div class="menutop yyclockbar small"><span>{{template "yydate" .Now}}</span></div>
<div class="windowbg2 yyhead25">
<a href="/forum/" class="yylogo25"><span class="yyorb-logo"></span><span><span class="yylogo-name">{{.BBS}}</span><span class="yylogo-sub">Yet another Bulletin Board</span></span></a>
<div class="yyhead25-right">
<div class="yyuname">{{if .User}}Hey, <b><a href="/forum/user/{{path .User.Name}}">{{.User.Name}}</a></b><br><span class="small">You have <a href="/forum/search">new posts</a> to read.</span>{{else}}Welcome, <b>Guest</b>. Please <a href="/forum/login">login</a>{{if .Register}} or <a href="/forum/register">register</a>{{end}}.{{end}}</div>
<div class="small yynews25"><b>News:</b> Dial in, log on, say hello.</div>
</div>
</div>
<div class="menutop yyspacer"></div>
<div class="yytabrow">
<div class="tabmenu">
<span{{if eq .Page "index.html" "area.html" "topic.html"}} class="selected"{{end}}><a href="/forum/">Home</a></span><span{{if eq .Page "search.html"}} class="selected"{{end}}><a href="/forum/search">Search</a></span><span{{if eq .Tab "online"}} class="selected"{{end}}><a href="/forum/online">Members</a></span>{{if .Terminal}}<span><a href="/terminal">Terminal</a></span>{{end}}{{if .User}}<span{{if eq .Page "profile.html"}} class="selected"{{end}}><a href="/forum/user/{{path .User.Name}}">My Profile</a></span><span><form method="post" action="/forum/logout" class="inline-form"><input type="hidden" name="csrf" value="{{.CSRF}}"><button class="linkish">Logout</button></form></span>{{else}}<span{{if eq .Page "login.html"}} class="selected"{{end}}><a href="/forum/login">Login</a></span>{{if .Register}}<span{{if eq .Page "register.html"}} class="selected"{{end}}><a href="/forum/register">Register</a></span>{{end}}{{end}}
</div>
<form method="get" action="/forum/search" class="rightbox"><input type="search" name="q" aria-label="Search" placeholder="Search"><button class="button">Search</button></form>
</div>
<div class="nav yynav25"><span>{{if .Crumbs}}<a href="/forum/">{{.BBS}}</a>{{range .Crumbs}} &rsaquo; {{if .URL}}<a href="{{.URL}}">{{.Name}}</a>{{else}}{{.Name}}{{end}}{{end}}{{else}}{{.BBS}}{{end}}</span></div>
{{if and (eq .Notice "welcome") .User}}<div class="yynotice"><b>Registration successful.</b> Welcome to {{.BBS}}, {{.User.Name}}.</div>{{end}}
<div id="yymain">
{{end}}
{{define "crumbs"}}{{with .}}{{end}}{{end}}
{{define "foot"}}
</div>
<div class="menutop yyfootbar"><span class="tabtitle"><a href="#">&uarr; Back to top</a></span><span class="tabtitle">{{template "themepicker" .}}</span></div>
</div>
<div class="copyright">
<a href="/forum/online">Who's online</a>{{if .Terminal}} | <a href="/terminal">Web terminal</a>{{end}}<br>
{{.BBS}} &raquo; Powered by bbs-sec
<div class="yybadges"><span>RSS</span><span>XHTML</span><span>CSS</span><span>Go</span></div>
</div>
</div>
</body>
</html>
{{end}}
+80
View File
@@ -0,0 +1,80 @@
{{define "topic.html"}}{{template "head" .}}
{{$b := .Body}}{{$csrf := .CSRF}}{{$me := .User}}
<div class="displaycontainer yybar25"><div class="catbg">
{{template "pages" $b.Pages}}
<span class="yybuttons">{{if $b.CanPost}}<a href="#yyreply">Reply</a>{{end}}</span>
</div></div>
{{with $b.Poll}}
<div class="displaycontainer yypoll25">
<div class="titlebg"><span class="yyicon poll"></span> Poll: {{$b.Root.Subject}}</div>
<div class="windowbg2 yypollbody">
{{if or .Voted (not $me)}}
<table class="yypollres">
{{range $i, $a := .Answers}}<tr><td class="answer"><b>{{$a.Text}}</b>{{if $a.Mine}} <span class="small">(your vote)</span>{{end}}</td><td class="bar"><meter min="0" max="100" value="{{$a.Pct}}"></meter></td><td class="votes small">{{$a.Count}} ({{$a.Pct}}%)</td></tr>{{end}}
</table>
<div class="small">Total votes: <b>{{.Total}}</b>{{if not $me}} &middot; <a href="/forum/login">Login</a> to vote{{end}}</div>
{{end}}
{{if $me}}
<form method="post" action="/forum/post/{{.ID}}/answer" class="pollvote">
<input type="hidden" name="csrf" value="{{$csrf}}">
<b>{{if .Voted}}Change your vote{{else}}Cast your vote{{end}}:</b>
{{range .Answers}}<label><input type="radio" name="answer" value="{{.Index}}"{{if .Mine}} checked{{end}}> {{.Text}}</label>{{end}}
<button class="button">Vote</button>
</form>
{{end}}
</div>
</div>
{{end}}
<div class="displaycontainer yytitle25"><div class="titlebg"><span class="yydoc{{if ge $b.Count 16}} hot{{end}}"></span> {{$b.Root.Subject}} <span class="yyread">({{plural $b.Count "post" "posts"}})</span></div></div>
{{range $b.Posts}}
<div class="displaycontainer yypost25" id="entry{{.M.ID}}">
<div class="catbg yydate25"><span class="yydoc"></span> <b>{{if ne .Num 1}}Reply #{{add .Num -1}} - {{end}}</b><a href="/forum/post/{{.M.ID}}">{{template "yydate" .M.Created}}</a></div>
<div class="userinfo">
<div class="yyuserpic">{{template "avatar" (av .M.From "large")}}</div>
<div class="yyuserleft small">
<span class="yyname25">{{if .Author}}<a href="/forum/user/{{path .Author.Name}}"><b>{{.M.From}}</b></a>{{else}}<b>{{.M.From}}</b>{{end}}</span> &nbsp; <span class="useroffline">Offline</span><br>
{{if .Author}}<b>{{template "yyrank" .Author}}</b>{{if .Author.Location}}<br>{{.Author.Location}}{{end}}{{else}}Guest{{if .Where}}<br>{{.Where}}{{end}}{{end}}
</div>
{{if .Author}}<div class="yyuserright small">
<b>Posts: {{num .Author.Posts}}</b><br>
{{template "yystars" .Author}}
</div>{{end}}
</div>
<div class="{{if odd .Num}}windowbg{{else}}windowbg2{{end}} yybody25">
<div class="yypostbtns small">
{{if $b.CanPost}}<a href="/forum/topic/{{$b.Root.ID}}?quote={{.M.ID}}{{if gt $b.Pages.Cur 1}}&amp;page={{$b.Pages.Cur}}{{end}}#yyreply" class="yybtn">Quote</a>{{end}}
{{if .CanLike}}<form method="post" action="/forum/post/{{.M.ID}}/like" class="inline-form"><input type="hidden" name="csrf" value="{{$csrf}}"><input type="hidden" name="like" value="{{if .Liked}}0{{else}}1{{end}}"><button class="yybtn">{{if .Liked}}Unlike{{else}}Like{{end}}</button></form>{{end}}
{{if .CanDelete}}<form method="post" action="/forum/post/{{.M.ID}}/delete" class="inline-form"><input type="hidden" name="csrf" value="{{$csrf}}"><button class="yybtn">Delete</button></form>{{end}}
</div>
<div class="message yymessage">{{body .M.Body}}</div>
{{if .Likes}}<div class="small yylikes"><i>{{plural .Likes "member likes" "members like"}} this post.</i></div>{{end}}
<div class="dividertop yymsgfoot small"><a href="#">Back to top</a><span class="yyip"><span class="yyicon ip"></span> Logged</span></div>
</div>
</div>
{{end}}
<div class="displaycontainer yybar25"><div class="catbg">
{{template "pages" $b.Pages}}
<span class="yybuttons">{{if $b.CanPost}}<a href="#yyreply">Reply</a>{{end}}</span>
</div></div>
{{if $b.CanPost}}
<form method="post" action="/forum/topic/{{$b.Root.ID}}/reply" id="yyreply" class="displaycontainer yyform25">
<input type="hidden" name="csrf" value="{{.CSRF}}">
{{if $b.QuoteID}}<input type="hidden" name="reply_to" value="{{$b.QuoteID}}">{{end}}
<div class="titlebg">Quick Reply</div>
<div class="windowbg2 yyformbody">
<div class="small"><b>Subject:</b> Re: {{$b.Root.Subject}}</div>
<textarea name="body" rows="8" required aria-label="Message">{{$b.Quote}}</textarea>
<div class="small">Quote with &gt; at the start of a line.</div>
{{if $b.Aliases}}<label class="small"><input type="checkbox" name="alias"> Post as {{$me.Alias}}</label>{{end}}
<div class="yyformfoot"><button class="button">Post</button></div>
</div>
</form>
{{else if not .User}}
<p class="yynotice">Please <a href="/forum/login?back={{urlq (printf "/forum/topic/%d" $b.Root.ID)}}">login</a> to reply to this topic.</p>
{{end}}
{{template "foot" .}}{{end}}