vienalatina/apps/board/templates
Claude 751d452556
Fijar: moderators choose what gets read first
Half of this already existed and nothing said so. `threads.pinned` has
been in the schema since the board shipped, with an index on it and a
toggle route, but it was @admin_required, reachable only from inside a
thread, and Inicio ignored it.

Who. Moderators and above, on both halves. Curating what the public
reads is the whole of a moderator's job, and content.py has said so
since the queue was built. Locking a thread rides the same route and is
still an admin's: it stops named people saying anything more to each
other, which is power over people rather than over content, and this
codebase keeps those apart everywhere else.

What is stored. A moment, not a flag — several posts can be pinned and
the newest pin goes first, so the value is the order. `pinned:
'2026-10-13T12:00:00'` in a post's own frontmatter, written only when
true; `threads.pinned_at` beside the flag the wall already had, cleared
on unpinning so that pinning again puts it where a new pin belongs. One
key carrying both means `{{ if .Params.pinned }}` still reads as a
yes/no and nothing has to be kept in step with anything.

translate.py needs nothing: it copies the whole frontmatter and rewrites
only TRANSLATED_KEYS, so a pinned post is pinned in German too. Asserted
against the real list rather than assumed.

Two ways to pin a public post — the switch beside Publicar, and one
press in the Contenido list, because deciding what the site leads with
means looking at the list rather than opening each post to find out what
is in it. Both commit; the file is the record.

Migration 10 adds the columns and recreates the wall's index, which now
names pinned_at. `CREATE INDEX IF NOT EXISTS` leaves an existing index
exactly as it is, so without that a running server keeps the old
definition forever while a fresh install gets the new one. Nothing
breaks either way, which is the problem.

Checked rather than assumed: built with Hugo 0.135.0 and the pipeline's
flags, two pinned posts come out above a newer unpinned one and in
pin order rather than post order, with the pill on the cards and on the
article. And the wall rendered at 390px, where the pinned thread leads
and nothing overflows.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
2026-10-13 18:24:32 +00:00
..
_attachments.html Let members post pictures, and back them up 2026-09-28 09:02:18 +00:00
_person.html Private messages live on the person, not in a tab 2026-10-03 20:12:16 +00:00
_pin.html Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
_reaction.html Publishing has never worked: one line, two wrong answers 2026-09-30 14:39:14 +00:00
activity.html Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
base.html Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
brand_form.html Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
calendar.html The calendar is a month again, at every width 2026-10-13 18:05:31 +00:00
comment_form.html A title nobody has to write, a fold, a switch and a button 2026-10-06 20:58:33 +00:00
content_form.html Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
content_list.html Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
error.html One dashboard, five sections, and a moderation queue 2026-09-30 11:09:55 +00:00
event_form.html A title nobody has to write, a fold, a switch and a button 2026-10-06 20:58:33 +00:00
event.html A phone can use this site, and the way in is a button 2026-10-03 21:04:13 +00:00
gestion.html Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
home.html Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
identity_form.html Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
login.html One front door: the members area owns its own logins 2026-09-29 08:25:25 +00:00
media.html Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
member_created.html One front door: the members area owns its own logins 2026-09-29 08:25:25 +00:00
member_new.html A title nobody has to write, a fold, a switch and a button 2026-10-06 20:58:33 +00:00
member.html Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
members.html Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
profile_edit.html The writing box shows the formatting, and raw HTML stops reaching the site 2026-10-06 20:07:18 +00:00
profile.html Style the profile page, and drop the step before writing 2026-09-29 14:16:25 +00:00
recover.html A title nobody has to write, a fold, a switch and a button 2026-10-06 20:58:33 +00:00
set_password.html Refuse before the form, not after the password 2026-09-25 19:20:44 +00:00
status.html Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
submission_form.html A title nobody has to write, a fold, a switch and a button 2026-10-06 20:58:33 +00:00
submission.html A post can say that a machine wrote it 2026-10-06 20:19:06 +00:00
submissions.html Private messages live on the person, not in a tab 2026-10-03 20:12:16 +00:00
thread_form.html A title nobody has to write, a fold, a switch and a button 2026-10-06 20:58:33 +00:00
thread.html Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00
threads.html Fijar: moderators choose what gets read first 2026-10-13 18:24:32 +00:00