{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2016-2020 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. #} {# TODO: Use url_for instead #} {%- from "invenio_theme/macros/truncate.html" import truncate_text %}
{% if logo %}
No image found
{% else %}
No image found
{% endif %}

{{ community.metadata.title }}

{{ truncate_text(community.metadata.description) }} {% if community.metadata.website %} {{community.metadata.website}} {% endif %} {% if community.metadata.type %}
{{ types[community.metadata.type] }}
{% endif %} {% if community.metadata.organizations %} {%- for organization in community.metadata.organizations %} {{ organization.name }} {%- endfor %} {% endif %}
{# TODO: Add proper statistics #}
{% set header_menu_items = { 'search': (_('Search'), url_for('invenio_communities.communities_detail', pid_value=community.id), 'search icon', True), 'members': (_('Members'), url_for('invenio_communities.members', pid_value=community.id), 'users icon', true), 'settings': (_('Settings'), url_for('invenio_communities.communities_settings', pid_value=community.id), 'settings icon', permissions.can_update), } %}