{% load i18n %} {% load humanize %} {% 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 ? processed tasks • last ? {% endblocktranslate %}

{% include "allianceauth/admin-status/celery_bar_partial.html" with label="succeeded" level="success" tasks_count=0 %} {% include "allianceauth/admin-status/celery_bar_partial.html" with label="retried" level="info" tasks_count=0 %} {% include "allianceauth/admin-status/celery_bar_partial.html" with label="failed" level="danger" tasks_count=0 %}

? {{ l10nRunning }} | ? {{ l10nQueued }} | ? {{ l10nSucceeded }} | ? {{ l10nRetried }} | ? {{ l10nFailed }}

{% include "bundles/auth-dashboard-task-queue-js.html" %}