{% comment %} * Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/ * Contact: beat.support@idiap.ch * * This file is part of the beat.web module of the BEAT platform. * * Commercial License Usage * Licensees holding valid commercial BEAT licenses may use this file in * accordance with the terms contained in a written agreement between you * and Idiap. For further information contact tto@idiap.ch * * Alternatively, this file may be used under the terms of the GNU Affero * Public License version 3 as published by the Free Software and appearing * in the file LICENSE.AGPL included in the packaging of this file. * The BEAT platform is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. * * You should have received a copy of the GNU Affero Public License along * with the BEAT platform. If not, see http://www.gnu.org/licenses/. {% endcomment %} {% load gravatar %} {% load ui_tags %} {% load dataformat_tags %} {% with "Sharing at the platform is an irreversible procedure. For example, public objects cannot be made private again. If you share an object with a user or team and change your mind, you can still delete the object, for as long as it is not being used by you or another colleagues with access." as help_text %} {% with object.get_sharing_display as p %}

{% if p == 'Private' %} {% elif p == 'Public' %} {% else %} {% endif %} This dataformat is {{ p }}

{{ help_text }}

{% if p == 'Shared' %} {% if object.shared_with.count %}

Users with access:

    {% for user in object.shared_with.all %}
  • {{ user.first_name }} {{ user.last_name }} ({{ user.username }})
  • {% endfor %}
{% endif %} {% if object.shared_with_team.count %}

Teams with access:

    {% for team in object.shared_with_team.all %}
  • {{ team.owner.username }} / {{ team.name }}
  • {% endfor %}
{% endif %} {% endif %} {% if object.referenced_formats.count %}
Referenced Data formats

These data formats are used by this data format. Upon sharing, note that the sharing permissions will be cascaded to the used formats if necessary (and if they belong to you). This is a recursive procedure.

{% dataformat_table object.referenced_formats.all False 'referenced-dataformat-list' %} {% endif %}
{% endwith %} {% endwith %}