Renaming «Inicio» was six edits — base.html, home.py's section list,
config.yaml three times, an aria-label, and the breadcrumb schema — and
none of them reachable from Gestión. That is the thing Identidad exists
to end for the site's name, and it stopped before it reached the labels.
The mechanism, and the navigation through it. The rest of the ~560
strings follow in later commits; this one is the path proved end to end.
apps/board/strings/*.yaml is the catalogue, shipped in the image through
the Dockerfile's existing COPY. Only the differences are stored, which
is brand.FACTORY's rule and buys the same thing: a wording I improve
later improves for everyone who has not deliberately overridden it.
The `site.` prefix decides everything — one box or three, SQLite or a
commit of data/ui.yaml, this page load or the next pipeline run.
The fallback order is a judgement rather than an accident: an override
for the asked-for language, then the *shipped* word in that language,
then Spanish. Somebody who reworded only the Spanish has said nothing
about German, and showing a German reader Spanish would be reading an
intention into silence. Verified in a real build: with es overridden,
the Spanish menu says «Escritorio» and the German still says «Start».
The screen is generic — it iterates the catalogue, so extracting another
hundred strings costs nothing here. There is no field list in ui.py and
there must never be one.
Two guards are what make a 560-string extraction mechanical rather than
risky: every t("…") used must exist, and every key defined must be used.
A typo renders as nav.incio on a page; an orphan is a box in Gestión
that changes nothing. Both fail the suite instead. I proved all three
guards (including the one holding t.html to the catalogue) by
introducing the bug each describes and watching it go red.
Two things fixed on the way, both found by the extraction rather than
looked for: home.py and base.html held two copies of the same six words,
so a rename would have reached the members area and not the strip on the
public site; and memberbar.js hardcoded two more in a fingerprinted
script, the one surface no setting could ever reach.
No migration — `strings` is a new table, so CREATE TABLE IF NOT EXISTS
makes it, as activity and site arrived. The erase guard caught the new
members(id) reference by itself, which is the mechanism working.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
145 lines
4.8 KiB
HTML
145 lines
4.8 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.new') }}">Dar de alta</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">
|
|
El directorio está en <a href="{{ url_for('members.index') }}">Miembros</a>,
|
|
que ahora es una sección como las demás. Invitar de nuevo, cambiar el rol,
|
|
suspender y eliminar están en la ficha de cada persona.
|
|
</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>
|
|
|
|
<section class="panel">
|
|
<div class="panel__head">
|
|
<h2>Biblioteca de medios</h2>
|
|
<a class="linkish" href="{{ url_for('media.index') }}">Abrir</a>
|
|
</div>
|
|
<p class="muted small">
|
|
Todas las imágenes del sitio público y qué artículo usa cada una. Las que
|
|
no usa nadie —de artículos que se borraron— se pueden quitar desde ahí.
|
|
</p>
|
|
</section>
|
|
|
|
{% if g.member.role == 'superadmin' %}
|
|
<section class="panel">
|
|
<div class="panel__head">
|
|
<h2>Marca</h2>
|
|
<a class="linkish" href="{{ url_for('brand.edit') }}">Abrir</a>
|
|
</div>
|
|
{% if brand.updated_at and not brand.published_at %}
|
|
<p class="panel__row">Hay cambios guardados que no han llegado al sitio público.</p>
|
|
{% endif %}
|
|
<p class="muted small">
|
|
Los colores, el logotipo y el icono de la pestaña, para las dos mitades del
|
|
sitio. Con un apartado avanzado para quien sepa CSS, y un botón para
|
|
volver a lo de fábrica.
|
|
</p>
|
|
</section>
|
|
|
|
<section class="panel">
|
|
<div class="panel__head">
|
|
<h2>Identidad</h2>
|
|
<a class="linkish" href="{{ url_for('identity.edit') }}">Abrir</a>
|
|
</div>
|
|
{% set site = identity() %}{% if site.updated_at and not site.published_at %}
|
|
<p class="panel__row">Hay cambios guardados que no han llegado al sitio público.</p>
|
|
{% endif %}
|
|
<p class="muted small">
|
|
El nombre y el lema en los tres idiomas, los perfiles de la asociación en
|
|
otros sitios, el contacto y el pie de página.
|
|
</p>
|
|
</section>
|
|
|
|
<section class="panel">
|
|
<div class="panel__head">
|
|
<h2>Textos</h2>
|
|
<a class="linkish" href="{{ url_for('ui.edit') }}">Abrir</a>
|
|
</div>
|
|
{% set words = ui_state() %}{% if words.updated_at and not words.published_at %}
|
|
<p class="panel__row">Hay cambios guardados que no han llegado al sitio público.</p>
|
|
{% endif %}
|
|
<p class="muted small">
|
|
Cómo se llaman las secciones y qué dicen los botones y los avisos, en las
|
|
dos mitades del sitio. Si aquí dentro preferís «Escritorio» a «Inicio», o
|
|
«Socios» a «Miembros», se cambia desde aquí.
|
|
</p>
|
|
</section>
|
|
|
|
<section class="panel">
|
|
<div class="panel__head">
|
|
<h2>Estado del sistema</h2>
|
|
<a class="linkish" href="{{ url_for('status.index') }}">Abrir</a>
|
|
</div>
|
|
<p class="muted small">
|
|
Si el token para publicar funciona de verdad, si el correo sale, cuándo fue
|
|
la última copia de seguridad y cuánto disco queda. No cambia nada: responde.
|
|
</p>
|
|
</section>
|
|
|
|
<section class="panel">
|
|
<div class="panel__head">
|
|
<h2>Registro de actividad</h2>
|
|
<a class="linkish" href="{{ url_for('activity.index') }}">Abrir</a>
|
|
</div>
|
|
<p class="muted small">
|
|
Quién cambió un rol, aprobó una publicación, tocó el aspecto del sitio o
|
|
eliminó a alguien.
|
|
</p>
|
|
</section>
|
|
{% endif %}
|
|
|
|
{% 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 %}
|