{% extends "layouts" ~ DIR ~ "default.twig" %} {% block title %}{{ "Manage Posts" | translate }}{% endblock %} {% block content %}

{{ GET.query is not empty ? "Search Results" | translate : "Posts" | translate }}

{{ trigger.call("manage_posts_column_header") }} {% for post in posts.paginated %} {{ trigger.call("manage_posts_column", post) }} {% else %} {% endfor %}
{{ "Title" | translate }} {{ "Status" | translate }} {{ "Controls" | translate }}
{{ post.title() | striptags | oneof("[Untitled]" | translate) | truncate(40) }} {% for group in post_statuses.(post.id).groups %} {{ group.name }} {% else %} {{ post_statuses.(post.id).name | oneof("[None]" | translate) }} {% endfor %} {{ post.edit_link(icon_svg("edit.svg", "Edit" | translate), null, null, "emblem") }} {{ post.delete_link(icon_svg("delete.svg", "Delete" | translate), null, null, "emblem") }}
{{ icon_svg("failure.svg", false, "emblem") }} {{ "No results" | translate }}
{% if posts.paginated is defined and posts.pages > 1 %} {% endif %} {% endblock %}