{% endif %}
{% for module in modules_by_context[context] %} {# begin modules #}
{% if loop.index0 in enabled_module_indices[context] %} {# if module is enabled #}
{% 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 %}
{{ card.content | safe }}
{% endfor %} {# end cards #}
{% endif %} {# end if module is enabled #}
{% endfor %} {# end modules #}
{% if card_count | length == 0 and num_enabled_modules > 1 %} {# begin no cards message #}
No cards to show.
{% endif %} {# end no cards message #}
{% if num_enabled_modules > 1 %}