{% extends "package/edit_base.html" %} {% block subtitle %}{{ _('Collaborators') }} {{ g.template_title_delimiter }} {{ super() }}{% endblock %} {% block page_primary_action %} {% if h.check_access('package_collaborator_create', {'id': pkg_dict.id})%} {% link_for _('Add Collaborators'), named_route='dataset.new_collaborator', id=pkg_dict.name, class_='btn btn-primary', icon='plus-square' %} {% endif %} {% endblock %} {% block primary_content_inner %} {% set collaborators = h.get_collaborators(pkg_dict['id'])%} {% set count = collaborators|length %} {% set collaborators_count = ungettext('{count} collaborator', '{count} collaborators', count).format(count=count) %}

{{ collaborators_count }}

{% for user_id, capacity in collaborators %} {% endfor %}
{{ _('User') }} {{ _('Role') }}
{{ h.linked_user(user_id, maxlength=20) }} {{ capacity }}
{% endblock %}