mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-08-24 02:41:42 +02:00
Merge branch 'fix-debug-warning-widget' into 'master'
[FIX] Debug warning dashboard widget See merge request allianceauth/allianceauth!1746
This commit is contained in:
commit
47e64f6b15
@ -1,6 +1,23 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load humanize %}
|
{% load humanize %}
|
||||||
|
|
||||||
|
{% if debug %}
|
||||||
|
<div id="aa-dashboard-panel-debug" class="col-12 mb-3">
|
||||||
|
<div class="card text-bg-warning">
|
||||||
|
<div class="card-body">
|
||||||
|
{% translate "Debug mode" as widget_title %}
|
||||||
|
{% include "framework/dashboard/widget-title.html" with title=widget_title %}
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<p class="text-center">
|
||||||
|
{% translate "Debug mode is currently turned on!<br>Make sure to turn it off as soon as you are finished testing." %}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if notifications %}
|
{% if notifications %}
|
||||||
<div id="aa-dashboard-panel-admin-notifications" class="col-12 mb-3">
|
<div id="aa-dashboard-panel-admin-notifications" class="col-12 mb-3">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
@ -118,20 +135,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if debug %}
|
|
||||||
<div id="aa-dashboard-panel-debug" class="col-12 mb-3">
|
|
||||||
<div class="card text-bg-warning">
|
|
||||||
<div class="card-body">
|
|
||||||
<h5 class="card-title">{% translate "Debug mode" %}</h5>
|
|
||||||
<p class="card-text">
|
|
||||||
{% translate "Debug mode is currently turned on. Make sure to turn it off as soon as you are finished testing" %}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const elemRunning = document.getElementById("task-counts");
|
const elemRunning = document.getElementById("task-counts");
|
||||||
const elemQueued = document.getElementById("queued-tasks-count");
|
const elemQueued = document.getElementById("queued-tasks-count");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user