{% load i18n %} {% load humanize %} {% load aa_customizer_tags %} {% superuser_branding as aac_sb %} {# Inject superuser-only CSS. {% endif %} {% if aac_sb.superuser_dashboard_head_html %}{{ aac_sb.superuser_dashboard_head_html|safe }}{% endif %} {% get_current_language as LANGUAGE_CODE %} {% comment %} Some translations used in the HTML and JavaScript code below. We define them here so that they can be used in the JavaScript code as well with the escapejs filter without having to redefine them later. {% endcomment %} {% translate "second" as l10nSecondSingular %} {% translate "seconds" as l10nSecondPlural %} {% translate "minute" as l10nMinuteSingular %} {% translate "minutes" as l10nMinutePlural %} {% translate "hour" as l10nHourSingular %} {% translate "hours" as l10nHourPlural %} {% translate "N/A" as l10nNA %} {% translate "ERROR" as l10nError %} {% translate "running" as l10nRunning %} {% translate "queued" as l10nQueued %} {% translate "succeeded" as l10nSucceeded %} {% translate "retried" as l10nRetried %} {% translate "failed" as l10nFailed %} {% if debug %}
{% translate "Debug mode" as widget_title %} {% include "framework/dashboard/widget-title.html" with title=widget_title %}

{% translate "Debug mode is currently turned on!
Make sure to turn it off as soon as you are finished testing." %}

{% endif %} {% if notifications %}
{% translate "Alliance Auth Notifications" as widget_title %} {% include "framework/dashboard/widget-title.html" with title=widget_title %}
{% endif %}
{% translate "Software Version" as widget_title %} {% include "framework/dashboard/widget-title.html" with title=widget_title %}
{% translate "Task Queue" as widget_title %} {% include "framework/dashboard/widget-title.html" with title=widget_title %}

{% blocktranslate with total=tasks_total|intcomma latest=earliest_task|timesince|default:"?" %} Status of {{ total }} processed tasks • last {{ latest }} {% endblocktranslate %}

{% include "admin_status/celery_bar_partial.html" with label="succeeded" level="success" tasks_count=tasks_succeeded %} {% include "admin_status/celery_bar_partial.html" with label="retried" level="info" tasks_count=tasks_retried %} {% include "admin_status/celery_bar_partial.html" with label="failed" level="danger" tasks_count=tasks_failed %}

? {{ l10nRunning }} | ? {{ l10nQueued }} | {{ tasks_succeeded|intcomma }} {{ l10nSucceeded }} | {{ tasks_retried|intcomma }} {{ l10nRetried }} | {{ tasks_failed|intcomma }} {{ l10nFailed }}

{% include "bundles/auth-dashboard-task-queue-js.html" %} {% if aac_sb.superuser_dashboard_body_html %}{{ aac_sb.superuser_dashboard_body_html|safe }}{% endif %}