{% extends 'base/layout.html' %} {% load helpers %} {% load i18n %} {% comment %} Context: table: Table of the NetBox objects on the active tab that Slurp'it has not synced for more than `days` days tabs: List of {value, label, count} for every object type active_tab: Value of the active tab days: Days without a sync after which an object is listed cutoff: Objects last synced before this time are listed last_sync_run: When the Slurp'it sync of the active type last ran with every record processed paused: True when the Slurp'it sync of the active type has not run since the cutoff; deleting is then disabled kind_verbose_name_plural: Plural name of the active type, used in the sync and paused messages can_delete: True when the user has the NetBox delete permission on the active type; row checkboxes and "Delete selected" are shown only then max_days: Largest accepted `days` value {% endcomment %} {% block header %} {% endblock header %} {% block content %}
{% trans "days" %} {% if last_sync_run %} {% blocktrans trimmed with objects=kind_verbose_name_plural date=last_sync_run|isodatetime %} Last Slurp'it sync of {{ objects }}: {{ date }} {% endblocktrans %} {% else %} {% blocktrans trimmed with objects=kind_verbose_name_plural %} No Slurp'it sync of {{ objects }} yet {% endblocktrans %} {% endif %}
{% if paused %} {% endif %} {# Object table controls #} {% include 'inc/table_controls_htmx.html' with table_modal="ObjectTable_config" %}
{% csrf_token %} {% if can_delete %}
{% trans "Nothing is deleted yet: the next page shows what would be deleted and what is blocked, and asks for confirmation." %}
{% endif %}
{% include 'htmx/table.html' %}
{% table_config_form table table_name="ObjectTable" %} {% endblock content %}