{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2023 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/details/macros/custom_fields.html" import list_vocabulary_values, list_string_values, show_custom_field %} {% set active_community_header_menu_item= 'about' %} {%- block page_body %} {{ super() }}
{{ community.metadata.page | safe }} {% if community.ui.funding|length %}

{{ _("Awards") }}

{% for funding in community.ui.funding %}
{% if funding.award %}
{{ funding.award.title_l10n }} {% if funding.award.identifiers|length and funding.award.identifiers[0].scheme == "url" %} {% endif %}
{% endif %} {% if funding.funder %}
{{ funding.funder.name }}
{% endif %}
{% endfor %}
{% endif %} {% set custom_fields = community.ui.custom_fields %} {% for section_cfg in custom_fields_ui if custom_fields %} {% set section_fields = section_cfg.fields %}

{{ section_cfg.section }}

{% for field_cfg in section_fields %} {% set field_value = custom_fields.get(field_cfg.field) %} {% if field_value and field_cfg.template %} {% include field_cfg.template %} {% elif field_value and not field_cfg.template %}
{{ field_cfg.props.label }}
{{ show_custom_field(field_value, field_cfg) }} {% endif %} {% endfor %} {%- endfor %}
{%- endblock page_body -%}