Three things from a round of looking at the deployed site. **The staggered table rows.** content_list.html had `<td class="actions actions--row">`, and `.actions` is display:flex. A <td> told to be a flex container stops being a table cell: it leaves the row's layout and draws its bottom border at its own content height, so the columns' rules no longer meet. Nothing errors and the page renders, which is how it survived two rounds of somebody looking straight at it — including mine, when I blamed the wrapping on the Miembros table and rebuilt that page as cards. The flex row moves into a <div> inside the cell, and test_templates.py now fails on any <td> carrying the class, beside the guards for the things the CSP silently drops. **A published post did not say who wrote it.** The commit has named the author since the editor was built; the page never did, so a reader could not tell whose article it was. frontmatter_for writes `author`, and `author_url` only when that member has published their own page — a byline linking to a 404 is worse than one that does not link. publish() fills it from whoever wrote the thing, which for an approved proposal is the member and not the moderator; edit() deliberately does not, so fixing a typo in somebody's article never re-signs it. The hidden field carrying the URL back is checked against a path on this site, because a hidden field is a convention and not a promise. scripts/translate.py needed no change, which I checked rather than assumed: it copies the whole frontmatter and translates only the title and description, so an author reaches the German and Portuguese siblings untranslated, as a name should. The theme's single.html renders it, verified by building the site with Hugo 0.135 — `por <a href="/salvador">Salvador Dalí</a>` with the link, `por Salvador Dalí` without. **Contenido had no way in.** The page worked and nothing linked to it: Gestión offered only the static pages, and the Artículos tab exists only once you are already on that screen — so a moderator, who cannot open Gestión at all, had no route to the published articles. Gestión gains an Artículos card, Publicaciones gains *Ya publicado* beside its button, and the button that read "Nuevo página" now reads "Nueva página", since Spanish gives the article a gender and "Nuevo " + the singular cannot be right for both. 439 tests pass. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
64 lines
2.0 KiB
HTML
64 lines
2.0 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Gestión{% endblock %}
|
|
|
|
{% block main %}
|
|
<div class="feed-head">
|
|
<h1>Gestión</h1>
|
|
</div>
|
|
|
|
<p class="muted">
|
|
Lo que sólo hace la administración. Todo lo demás — el muro, los privados,
|
|
las publicaciones — está en las otras secciones y funciona igual para ti que
|
|
para cualquier miembro.
|
|
</p>
|
|
|
|
<section class="panel">
|
|
<div class="panel__head">
|
|
<h2>Miembros</h2>
|
|
<a class="linkish" href="{{ url_for('members.index') }}">Abrir</a>
|
|
</div>
|
|
<p class="panel__row">
|
|
{{ counts.members }} en total · {{ counts.moderators }} pueden moderar
|
|
{% if counts.suspended %} · {{ counts.suspended }} suspendido{{ '' if counts.suspended == 1 else 's' }}{% endif %}
|
|
</p>
|
|
<p class="muted small">
|
|
Dar de alta, invitar de nuevo, cambiar el rol, suspender y eliminar.
|
|
</p>
|
|
</section>
|
|
|
|
<section class="panel">
|
|
<div class="panel__head">
|
|
<h2>Artículos publicados</h2>
|
|
<a class="linkish" href="{{ url_for('content.index', collection='post') }}">Abrir</a>
|
|
</div>
|
|
<p class="muted small">
|
|
Lo que ya está en vienalatina.com: editar, corregir o retirar. Para
|
|
publicar algo nuevo, o para revisar lo que proponen los miembros, está
|
|
<a href="{{ url_for('submissions.index') }}">Publicaciones</a>.
|
|
</p>
|
|
</section>
|
|
|
|
<section class="panel">
|
|
<div class="panel__head">
|
|
<h2>Páginas del sitio</h2>
|
|
<a class="linkish" href="{{ url_for('content.index', collection='page') }}">Abrir</a>
|
|
</div>
|
|
<p class="muted small">
|
|
Acerca de, contacto y las demás páginas fijas de vienalatina.com. Las
|
|
publicaciones no están aquí: eso es
|
|
<a href="{{ url_for('submissions.index') }}">Publicaciones</a>, que los
|
|
moderadores comparten contigo.
|
|
</p>
|
|
</section>
|
|
|
|
{% if counts.pending %}
|
|
<section class="panel panel--attention">
|
|
<div class="panel__head">
|
|
<h2>Pendiente de revisar</h2>
|
|
<a class="linkish" href="{{ url_for('submissions.index') }}">Ver</a>
|
|
</div>
|
|
<p class="panel__row">{{ counts.pending }} propuesta{{ '' if counts.pending == 1 else 's' }} esperando a un moderador.</p>
|
|
</section>
|
|
{% endif %}
|
|
{% endblock %}
|