{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2015-2019 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. #} {% set can_create_community, can_create_error_message = can_create_communities %}
{% if current_user.is_authenticated %} {% if mycommunities %} {% if not can_create_community %}

{{can_create_error_message}}

{% endif %}

{{ _('My communities') }}

{% for obj in mycommunities %} {% endfor %}
{{obj.title if obj.title else 'Untitled'}}
{{ _('Identifier') }}: {{obj.id}}
{% else %}

{{ _('You currently have no community collections.') }}

{% if not can_create_community %}

{{can_create_error_message}}

{% endif %} {{ _('Want your own community?') }}

{{ _('It\'s easy. Just click the button to get started.') }}

{% endif %} {% else %}

{%- if security.registerable %}   {% else %}  {{ _('Log in') }} {% endif %}
{{ _('Want your own community?') }}

{{ _('It\'s easy. Just click the button to get started.') }}

{% endif %}