{% extends "layout.html" %} {% set active_page = "jobs" %} {% block title %}{{ title }}{% endblock %} {% block subtitle %}{{ subtitle }}{% endblock %} {% block panels %} {% if enabled_modules|length <= 1 %}
{% endif %} {% for job_details in jobs %} {% set card_count = [] %} {% if enabled_modules|length > 1 %}
{% endif %} {% if ( enabled_modules|length > 1 and jobs|length > 1 ) or ( jobs|length == 1 and query is defined ) %}

{{ job_details.title }}

{{ job_details.job|string }}
{% endif %} {% if enabled_modules|length > 1 %}
{% endif %} {% for module in modules %} {# begin modules #} {% if module.is_enabled() and module.context == 'JobContext' %} {# if module should render #} {% for card in module.get_cards(job_details.job) %} {# begin cards #} {# jinja variables go out of scope after the loop unless this "list" hack is used #} {% if card_count.append(1) %}{% endif %}
{% if enabled_modules|length <= 1 and jobs|length > 1 %}
{{ job_details.title }}
{{ job_details.job|string }}
{% endif %} {{ card.name }}
{{ card.content | safe }}
{% endfor %} {# end cards #} {% endif %} {# end if module should render #} {% endfor %} {# end modules #} {% if card_count|length == 0 and enabled_modules|length > 1 %} {# begin no cards message #}
No cards to show.
{% endif %} {# end no cards message #} {% if enabled_modules|length > 1 %}
{% if not loop.last %}
{% endif %} {% endif %} {% endfor %} {# end jobs #} {% if enabled_modules|length <= 1 %}
{% endif %} {% endblock %}