{# Admin dashboard — post list + About edit link + new-post button. Context: - user : app.models.entities.User (required) - posts : list[Post] (newest-updated first) - about : app.models.entities.Page | None - msg : str (PRG flash key) - csrf_token : str (for the inline forms) #} {% extends "admin/base.html" %} {% block title %}Dashboard — Admin{% endblock %} {% block content %}

Dashboard

Signed in as {{ user.email }}.

{% if msg %}

{% if msg == "created" %}Post created. {% elif msg == "saved" %}Changes saved. {% elif msg == "deleted" %}Post deleted. {% elif msg == "published" %}Post published. {% elif msg == "unpublished" %}Post moved to draft. {% else %}Done. {% endif %}

{% endif %}

Posts

New post
{% if posts %} {% for post in posts %} {% include "admin/_post_row.html" %} {% endfor %}
Title Slug Status Updated Actions
{% else %}

No posts yet — create one.

{% endif %}

About page

{% if about %}

{{ about.title }} — last updated

Edit About

{% else %}

About page is missing. Reseed to recover.

{% endif %}
{% endblock %}