{% extends "base_template.html" %} {% block title %}{{ _('Posts') }}{% endblock %} {% block content %}

{{ _('Posts') }}

{{ _('Manage blog posts and their status.') }}

{{ _('+ New post') }}
{% with messages = get_flashed_messages(with_categories=true) %} {% for category, message in messages %}
{{ message }}
{% endfor %} {% endwith %}
{% for p in posts %} {# data-post-state carries the machine-readable state so tests and scripts stay independent of the translated label. Scheduled and published both show their date. #} {% if p.status != 'published' %} {% elif p.is_scheduled %} {% else %} {% endif %} {% else %} {% endfor %}
{{ _('Title') }} {{ _('Status') }} {{ _('Actions') }}
{{ p.title }}
{{ p.slug }}
{{ _('Draft') }} {{ _('Scheduled') }}
{{ p.published_at.strftime('%Y-%m-%d %H:%M') }}
{{ _('Published') }}
{{ p.date.strftime('%Y-%m-%d %H:%M') }}
{{ _('Edit') }}
{{ _('No posts yet.') }}
{% endblock %}