{% endif %}
{% for module in modules_by_context[context] %} {# begin modules #}
{% if loop.index0 in enabled_module_indices[context] %}
{% for card in module.get_cards(g.project) %} {# 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 should render #}
{% endfor %} {# end modules #}
{% if card_count | length == 0 and num_enabled_modules >= 1 %}
{% endif %}
{% if num_enabled_modules > 1 %}