{% extends "base.html" %} {% block content %} {% set attribute_name = "jobs" %} {% set run_times = ["all"] %} {% for job_name, value in jobs.items() %} {% if value['every'] not in run_times %} {% if run_times.append(value['every']) %}{% endif %} {% endif %} {% endfor %} {% set infos = [ {"name" : "JOBS TOTAL", "data" : jobs|length|string}, {"name" : "JOBS ERRORS", "data" : jobs_errors|string}, ] %} {% include "card_info.html" %} {% set filters = [ { "type": "input", "name": "Search", "label": "search", "id": "keyword", "placeholder": "keyword", "pattern": "(.*?)" }, { "type": "select", "name": "Success state", "id": "success", "value": "all", "values": [ "all", "false", "true" ] }, { "type": "select", "name": "Reload state", "id": "reload", "value": "all", "values": [ "all", "false", "true" ] }, { "type": "select", "name": "Run time", "id": "every", "value": "all", "values": run_times } ] %} {% include "card_filter.html" %} {% include "filter_nomatch.html" %}
JOBS LIST
{% set job_headers = [ { "name": "Name", "custom_class": "col-span-3" }, { "name": "Last run", "custom_class": "col-span-3" }, { "name": "Every", "custom_class": "col-span-1" }, { "name": "Reload", "custom_class": "flex justify-center col-span-1" }, { "name": "Success", "custom_class": "flex justify-center col-span-1" }, { "name": "Files", "custom_class": "col-span-3" } ] %}
{% for header in job_headers %}

{{ header['name'] }}

{% endfor %}
    {% for job_name, value in jobs.items() %} {% set jobs_data = [ {"type" : "text", "filter_name" : "name", "value" : job_name, "custom_class" : "col-span-3"}, {"type" : "text", "filter_name" : "last_run", "value" : value['last_run'], "custom_class" : "col-span-3"}, {"type" : "text", "filter_name" : "every", "value" : value['every'], "custom_class" : "col-span-1"}, {"type" : "check", "filter_name" : "reload", "value" : value['reload'], "custom_class" : "col-span-1"}, {"type" : "check", "filter_name" : "success", "value" : value['success'], "custom_class" : "col-span-1"}, {"type" : "select", "filter_name" : "success", "value" : value['success'], "custom_class" : "col-span-3"}, ] %}
  • {% for data in jobs_data %} {% if data['type'] == "text" %}

    {{ data['value'] }}

    {% endif %} {% if data['type'] == "check" and data['value'] %}

    {% endif %} {% if data['type'] == "check" and not data['value'] %}

    {% endif %} {% if data['type'] == "select" %}
    {% if value['cache'] %} {% endif %}
    {% endif %} {% endfor %}
  • {% endfor %}
{% endblock content %}