{% load i18n %} {% regroup post_list|dictsort:"status" by status as posts_by_status %} {% for post_list in posts_by_status %}

{{ post_list.list.0.get_status_display }}

{% with post_list.list|dictsortreversed:"created_at" as posts %} {% for post in posts %} {% if request.user == current_user or request.user.is_superuser %} {% endif %} {% endfor %} {% endwith %}
{% trans "Title" %} {% trans "Created" %} {% trans "Updated" %} {% trans "Actions" %}
{{ post.blog.name }} {{ post.title }} {{ post.created_at|date:"d M Y, H:i" }} {{ post.updated_at|date:"d M Y, H:i" }}
{% endfor %}