{% extends "vantage/base.html" %} {% load static vantage i18n %} {% block head %}{% endblock %} {% block content %}

{{ page_title }}

{{ page_description }}

{% comment %} Said out loud, as the webhooks page does: with no queue configured the cron command sends the emails itself, and nothing at all happens until cron runs it. {% endcomment %}

{% icon "activity" %} {% if backend.deferred %} {% blocktranslate trimmed %} Reports are queued by manage.py vantage_reports, which must run every minute from cron. {% endblocktranslate %} {% else %} {% blocktranslate trimmed %} No task backend is configured, so manage.py vantage_reports sends each report itself. It must run every minute from cron. {% endblocktranslate %} {% endif %}

{% if subs %} {% if everyone %}{% endif %} {% for sub in subs %} {% if everyone %}{% endif %} {% endfor %}
{% translate "Saved view" %}{% translate "Runs as" %}{% translate "Schedule" %} {% translate "Next" %} {% translate "Last" %} {% translate "Failed" %} {% translate "Actions" %}
{% if sub.can_edit %}{{ sub.view.name }}{% else %}{{ sub.view.name }}{% endif %} {{ sub.view.model_label }} {{ sub.user.get_username }} {{ sub.schedule }} {% if sub.active %}{% translate "Active" %}{% else %}{% translate "Paused" %}{% endif %} {% if sub.paused_reason %}

{{ sub.paused_reason }}

{% endif %}
{% if sub.next_run_at %}{% else %}—{% endif %} {% if sub.last_run_at %} {{ sub.get_last_status_display }} {% else %}—{% endif %} {{ sub.failing }}
{% if sub.can_act %}
{% csrf_token %}
{% if writable %}
{% csrf_token %}
{% if sub.can_edit %} {% icon "pencil" %}{% translate "Edit" %} {% endif %} {% icon "trash" %}{% translate "Delete" %} {% endif %} {% endif %}
{% else %}
{% icon "mail" class="v-empty-icon" %}

{% translate "No scheduled reports yet." %}

{% blocktranslate trimmed %} Open a saved view on a list page and choose Subscribe to get it by email as a CSV every day, week or month. {% endblocktranslate %}

{% endif %}

{% translate "Sends" %}

{% if page_obj.object_list %} {% for run in page_obj %} {% endfor %}
{% translate "When" %} {% translate "Report" %} {% translate "Status" %} {% translate "Rows" %} {% translate "To" %} {% translate "Time" %}
{{ run.subscription.view.name }} {% if everyone %}{{ run.subscription.user.get_username }}{% endif %} {{ run.get_trigger_display }} {{ run.get_status_display }} {% if run.status == "sent" and not run.attached %}

{% translate "Sent without the file: it was over the size limit." %}

{% endif %} {% if run.reason %}

{{ run.reason }}

{% endif %} {% if run.error %}

{{ run.error }}

{% endif %}
{{ run.rows|default_if_none:"—" }} {% if run.status == "sent" %}{{ run.recipients_count }}{% else %}—{% endif %} {% if run.duration_ms is not None %}{{ run.duration_ms }} ms{% else %}—{% endif %}
{% else %}

{% translate "Nothing has been sent yet." %}

{% endif %}
{% if page_obj.has_other_pages %} {% endif %} {% endblock %}