Add timers.js to bundle

It's used in `mumbletemps`
This commit is contained in:
Peter Pfeufer
2022-07-09 15:45:25 +02:00
parent d8c2944966
commit 7c05217900
3 changed files with 5 additions and 2 deletions

View File

@@ -40,7 +40,7 @@
</div> </div>
{% include 'bundles/moment-js.html' with locale=True %} {% include 'bundles/moment-js.html' with locale=True %}
<script src="{% static 'allianceauth/js/timers.js' %}"></script> {% include 'bundles/timers-js.html' %}
<script type="application/javascript"> <script type="application/javascript">
// Data // Data

View File

@@ -0,0 +1,3 @@
{% load static %}
<script src="{% static 'allianceauth/js/timers.js' %}"></script>

View File

@@ -539,7 +539,7 @@
</div> </div>
{% include 'bundles/moment-js.html' with locale=True %} {% include 'bundles/moment-js.html' with locale=True %}
<script src="{% static 'allianceauth/js/timers.js' %}"></script> {% include 'bundles/timers-js.html' %}
<script type="application/javascript"> <script type="application/javascript">
let timers = [ let timers = [
{% for timer in timers %} {% for timer in timers %}