{% extends "layouts" ~ DIR ~ "default.twig" %} {% block title %}{{ "Manage Comments" | translate("comments") }}{% endblock %} {% block content %}

{{ GET.query is not empty ? "Search Results" | translate : "Comments" | translate("comments") }}

{{ trigger.call("manage_comments_column_header") }} {% for comment in comments.paginated %} {{ trigger.call("manage_comments_column", comment) }} {% else %} {% endfor %}
{{ "Post" | translate("comments") }} {{ "Added" | translate("comments") }} {{ "Status" | translate("comments") }}{{ "Controls" | translate }}
{% if not comment.post.no_results %} {{ comment.post.title() | striptags | oneof("[Untitled]" | translate) | truncate(40) }} {% endif %} {{ comment.created_at | time }} {% if comment.status == "pingback" %} {{ "Webmention" | translate("comments") }} {% else %} {{ comment.status | capitalize | translate("comments") }} {% endif %} {{ comment.edit_link(icon_img("edit.svg", "edit" | translate), null, null, "emblem") }} {{ comment.delete_link(icon_img("delete.svg", "delete" | translate), null, null, "emblem") }}
{{ comment.body | striptags | truncate(100) }}
{{ icon_img("failure.svg", "", "emblem") }} {{ "No results" | translate }}
{% if visitor.group.can("edit_comment", "delete_comment") %}
{% endif %}
{% if comments.paginated is not empty and comments.pages > 1 %} {% endif %} {% endblock %}