{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2016-2024 CERN. Copyright (C) 2024 Northwestern University. Copyright (C) 2025 Graz University of Technology. 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_ui) %} {% if permissions.can_request_membership %} {# TODO: Add relation_to_community for other flows #}
{% endif %} {% endmacro %} {% macro community_title(community_ui) %}
{{ community_ui["metadata"]["title"] }} {% if community_ui['parent'] %}

{% endif %}
{% endmacro %}
{{community_title(community_ui)}}
{{community_title(community_ui)}} {% if community_ui["access"]["visibility"] == 'restricted' %}
{{ access_status_label() }}
{% endif %}
{% if community_ui["access"]["visibility"] == 'restricted' %}
{{ access_status_label() }}
{% endif %} {% if community_ui['parent'] %} {% endif %} {% if community_ui["metadata"]["website"] %} {% endif %} {% if community_ui["metadata"]["type"] is defined %}
{{ community_ui["ui"]["type"]["title_l10nn"] }}
{% endif %} {% if community_ui["metadata"]["organizations"] %}
{% endif %}
{# Button to request membership is fully disabled until feature completely merged in v14. #} {# {{ button_to_request_membership(community) }} #} {%- if not community_use_jinja_header %} {%- if not permissions.can_submit_record %}
{% endif %} {{ _("New upload") }} {% endif %} {% if permissions.can_moderate %} {{ _("Manage community") }} {% endif %}