{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2024 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {% extends "invenio_communities/details/base.html" %} {% from "invenio_communities/collections/macros.html" import render_depth_one_collection %} {% set active_community_header_menu_item= 'browse' %} {% set subcommunities_endpoint = community["links"]["subcommunities"] %} {% set community_slug = community["slug"] %} {% set can_have_children = community["children"]["allow"] %} {%- block javascript %} {{ super() }} {{ webpack['invenio-communities-browse.js'] }} {%- endblock %} {%- block page_body %} {{ super() }} {%- for tree_id, ctree in trees.items() -%}

{{ ctree.title }}

{%- for collection in ctree.collections -%}
{{ render_depth_one_collection(community, ctree, collection) }}
{%- endfor -%}
{%- endfor -%}

{{ config.get("APP_RDM_SUBCOMMUNITIES_LABEL", _("Subcommunities")) }}

{% if can_have_children %} {{ _('See all')}} {% endif %}
{% if can_have_children %}
{% else %}
{{ _('This community has no subcommunities') }}
{% endif %}
{%- endblock page_body %}