{% from "partials/apps-list-item.html" import app_item with context %}
{% from "partials/apps-list-phrases.html" import phrase with context %}
{% macro as_heading(item, alpha=false) %}
{% set level = 2 if not alpha else 3 %}
{% set name = item.name if not alpha else item.name | upper %}
{{ phrase("Applications available on") }}
{{ as_toc(catalog.by_availability.on_systems) }}{{ phrase("Interactive web applications available on") }}
{{ as_toc(catalog.by_availability.on_web, suffix=phrase("web interface")) }} {%- for system in catalog.by_availability.on_systems %} {{ as_heading(system) }} {{ as_list(system.apps) }} {% endfor -%} {%- for system in catalog.by_availability.on_web %} {% set web_system = {"name": system.name ~ " " ~ phrase("web interface"), "id": system.id} %} {{ as_heading(web_system) }} {{ as_list(system.apps) }} {% endfor -%} {% endif %} {% endmacro %}