{% load i18n %} {# for file/dir share #}

{% trans 'Share %(name)s' %}

{% if is_repo_owner %}
{% csrf_token %}

{% endif %} {% if user_perm == 'rw' %} {% endif %} {% if ENABLE_SUB_LIBRARY and not repo.is_virtual and is_repo_owner %}
{% url 'share_repo' as repo_share_url %} {% with post_url=repo_share_url %} {% include "snippets/repo_share_form.html" %} {# for sub-lib share #} {% endwith %}
{% endif %}