{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2016-2020 CERN. Copyright (C) 2024 Northwestern University. 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. #} {%- from "invenio_theme/macros/truncate.html" import truncate_text %} {%- from "invenio_communities/details/macros/access-status-label.html" import access_status_label -%} {% macro button_to_request_membership(community) %} {% if permissions.can_request_membership %} {# TODO: Add relation_to_community for other flows #}
{% endif %} {% endmacro %}

{{ community.metadata.title }}

{{ community.metadata.title }}

{% if community.access.visibility == 'restricted' %}
{{ access_status_label() }}
{% endif %}
{% if community.access.visibility == 'restricted' %}
{{ access_status_label() }}
{% endif %} {% if community.metadata.website %} {% endif %} {% if community.metadata.type is defined %}
{{ community.ui.type.title_l10n }}
{% endif %} {% if community.metadata.organizations %} {% for org in community.metadata.organizations %} {% set ror_id = org.id %} {% set name = org.name %}
{% if loop.index == 1 %} {% endif %} {{ name }} {% if ror_id %} {% endif %} {{ ", " if not loop.last }}
{% endfor %} {% endif %}
{{ button_to_request_membership(community) }} {%- if not community_use_jinja_header %} {{ _("New upload") }} {% endif %} {% if permissions.can_moderate %} {{ _("Manage community") }} {% endif %}