{% from 'global_macros.html' import preload_circle %} {% macro AppAnchor(app, classes=None) %} {% if app.open_in == 'iframe' %} {% elif app.open_in == 'this_tab' %} {% elif app.open_in == "new_tab" %} {% endif %} {% endmacro %} {% macro GridViewApp(app) %} {{ AppAnchor(app) }}
{% if app.data_sources.count() > 0 %}
{{ preload_circle() }} {% for data_source in app.data_sources %}

{% endfor %}
{% else %} {% endif %}
{{ app.name }}
{% if app.description %} {{ app.description }} {% else %} {% endif %}
{# This closes AppAnchor() #} {% endmacro %} {% macro ListViewApp(apps) %}
{% for app in apps %} {{ AppAnchor(app, classes="collection-item") }}
{{ app.name }} {% if app.description %} info {% endif %}
{% if app.data_sources.count() > 0 %} {{ preload_circle() }} {% for data_source in app.data_sources %} {% endfor %} {% endif %}
{# This closes AppAnchor() #} {% endfor %}
{% endmacro %}