{% extends "base.html" %} {% from "bootstrap5/pagination.html" import render_pagination %} {% set received_status_presentation = { "received": { "row_class": "table-info", "badge_class": "text-bg-info", "label": "Pending" }, "verifying": { "row_class": "table-warning", "badge_class": "text-bg-warning", "label": "Verifying" }, "verified": { "row_class": "table-success", "badge_class": "text-bg-success", "label": "Verified" }, "failed": { "row_class": "table-danger", "badge_class": "text-bg-danger", "label": "Declined" }, "deleted": { "row_class": "table-danger", "badge_class": "text-bg-danger", "label": "Declined" } } %} {% block content %}

Received Webmentions

{{ webmentions.total }} total
{% if webmentions.items %} {% for webmention in webmentions %} {% set style = received_status_presentation.get(webmention.status, {"row_class": "table-danger", "badge_class": "text-bg-danger", "label": "Declined"}) %} {% endfor %}
Status Source Target Received Updated Reason Actions
{{ style.label }} {{ webmention.source }} {{ webmention.target }} {{ webmention.failure_reason or "—" }}
{% if webmentions.pages > 1 %}
{{ render_pagination(webmentions) }}
{% endif %} {% include "includes/confirmation_modal.html" %} {% else %}

No Webmentions have been received yet.

{% endif %} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}