{% extends "admin/base.html" %} {% block admin_content %}

Dashboard

{{ count }}Total posts
{{ published }}Published
{{ drafts }}Drafts
{{ pending_comments }}Awaiting moderation

Recent posts

{% for p in posts[:5] %} {% else %} {% endfor %}
Title Status Date
{{ p.title }} {% if p.status == 'published' %}Published{% else %}Draft{% endif %} {{ parse_date(p.created_at) }}
No posts yet.

Comments awaiting moderation

{% if pending %} {% for c in pending %} {% endfor %}
AuthorCommentReceived
{{ c.author }} {{ c.body[:120] }}{% if c.body|length > 120 %}…{% endif %} {{ parse_date(c.created_at) }} Review
{% else %}

Nothing waiting for moderation.

{% endif %}
{% endblock %}