{% extends "base.html" %} {% from "bootstrap5/pagination.html" import render_pagination %} {% macro sortable_header(label, column, responsive_class="") %} {% set active = sort_key == column %} {{ label }} {% if active %}{% endif %} {% endmacro %} {% block content %}

Sources

{{ sources.total }} sources
{% if sources.items %}
{{ sortable_header('Status', 'status') }} {{ sortable_header('Path', 'path') }} {{ sortable_header('URL', 'url', 'd-none d-md-table-cell') }} {{ sortable_header('Webmentions', 'webmentions') }} {{ sortable_header('Revision', 'revision', 'd-none d-md-table-cell') }} {{ sortable_header('Created', 'created', 'd-none d-md-table-cell') }} {{ sortable_header('Last seen', 'last_seen', 'd-none d-md-table-cell') }} {% for source in sources %} {% set counts = statistics[source.uuid] %} {% if source.deleted_at is none %} {% set row_class = "table-success" %} {% set badge_class = "text-bg-success" %} {% set status_text = "Active" %} {% else %} {% set row_class = "table-danger" %} {% set badge_class = "text-bg-danger" %} {% set status_text = "Deleted" %} {% endif %} {% endfor %}
{{ status_text }} {{ source.path }} {{ source.url }} {{ counts.total }} Total {% if counts.sent %} {{ counts.sent }} sent {% endif %} {% if counts.no_endpoint %} {{ counts.no_endpoint }} no endpoint {% endif %} {% if counts.failed %} {{ counts.failed }} failed {% endif %} {% if counts.retrying %} {{ counts.retrying }} awaiting retry {% endif %} {{ source.revision }}
{% if sources.pages > 1 %}
{{ render_pagination(sources, args=filters) }}
{% endif %} {% else %} {% if filters %}

No sources match these filters.

{% else %}

No Webmention sources have been discovered yet.

{% endif %} {% endif %} {% include "includes/confirmation_modal.html" %} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}