{% extends g.theme.master %} {% block title %}{{title}}{% endblock %} {% block header %}{{title}}{% endblock %} {% block extra_css %} {% endblock %} {% macro project(n, subprojects) %}

{{n.name}}

{% for p in subprojects %} {% do g.set_project(p) %} {% if h.has_access(p, 'read')() %} {{c.project_summary.display(value=p)}} {% endif %} {% endfor %}
{% endmacro %} {% block content %} {% set old_project = c.project %} {% if text %} {{text|safe}} {% endif %} {% if not projects %}

No projects found

{% else %}
{% if projects[0] is sequence %} {% for n, subprojects in projects %} {{project(n, subprojects)}} {% endfor %} {% else %}
{% for project in projects %} {% do g.set_project(project) %} {% if h.has_access(project, 'read')() %} {{c.project_summary.display(value=project)}} {% endif %} {% endfor %}
{% endif %}
{% endif %} {% do g.set_project(old_project or None) %} {% endblock %}