{% 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 library_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' %} {% elif p == 'Usable' %} {% else %} {% endif %} This algorithm is {{ p }}

{{ help_text }}

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

Users with read 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 read access:

    {% for team in object.shared_with_team.all %}
  • {{ team.owner.username }} / {{ team.name }}
  • {% endfor %}
{% endif %} {% if object.usable_by.count %}

Users with execute-only access:

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

Teams with execute-only access:

    {% for team in object.usable_by_team.all %}
  • {{ team.owner.username }} / {{ team.name }}
  • {% endfor %}
{% endif %} {% endif %} {% with object.all_referenced_dataformats as formats %} {% if formats %}
Referenced Data formats

These data formats are used by this algorithm. 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 formats False 'referenced-formats-list' %} {% endif %} {% endwith %} {% if object.referenced_libraries.count %}
Referenced Libraries

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

{% library_table object.referenced_libraries.all False 'referenced-library-list' %} {% endif %}
{% endwith %} {% endwith %}