{% extends 'sovtimer/base.html' %}

{% load i18n %}
{% load static %}

{% block sovtimer_header %}
    {% translate "Sovereignty Timers" as translated_header %}
    {% include 'sovtimer/partials/header/h1.html' with header_text=translated_header %}
{% endblock %}

{% block sovtimer_body %}
    {% include 'sovtimer/partials/dashboard/table.html' %}

    <script type="application/javascript">
    var aaSovtimerSettings = {
        url: {
            ajaxUpdate: "{% url 'sovtimer:dashboard_data' %}"
        },
        dateformat: 'YYYY-MM-DD HH:mm',
        translations: {
            system: "{% translate 'System' %}",
            constellation: "{% translate 'Constellation' %}",
            region: "{% translate 'Region' %}",
            owner: "{% translate 'Owner / Defender' %}",
            activeCampaign: "{% translate 'Active Campaign' %}",
            yes: "{% translate 'Yes' %}",
            no: "{% translate 'No' %}"
        }
    }
    </script>
{% endblock %}

{% block extra_css %}
    {% include 'bundles/datatables-css.html' %}

    <link rel="stylesheet" href="{% static 'sovtimer/css/aa-bootstrap-fix.min.css' %}" type="text/css">
    <link rel="stylesheet" href="{% static 'sovtimer/css/aa-sov-timer.min.css' %}" type="text/css">
{% endblock %}

{% block extra_javascript %}
    {% include 'bundles/datatables-js.html' %}
    {% include 'bundles/moment-js.html' with locale=True %}

    <script type="application/javascript" src="{% static 'sovtimer/libs/datatables/plugins/dataTables.rowGroup.min.js' %}"></script>
    <script type="application/javascript" src="{% static 'sovtimer/libs/datatables/plugins/datetime.js' %}"></script>
    <script type="application/javascript" src="{% static 'js/filterDropDown/filterDropDown.min.js' %}"></script>
    <script type="application/javascript" src="{% static 'sovtimer/js/aa-sov-timer.min.js' %}"></script>
{% endblock %}

{% block extra_script %}
{% endblock extra_script %}
