{% load i18n %} {% if repository_restrictions %}
{% translate "Repository operations require permission on the component that owns the shared repository." %}
{% for restriction, permissions in repository_restrictions %} {% if restriction.project_components %}{% translate "Affected components:" %} {% for component in restriction.project_components %} {{ component.full_slug }}{% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %}{% if restriction.permission_blockers %} {% translate "You need the following permissions on the repository-owning component:" %} {% for component in restriction.permission_blockers %} {{ component.full_slug }}{% if not forloop.last %}, {% endif %} {% endfor %} {% else %} {% translate "You need the following permissions on the repository-owning component, which you cannot access:" %} {% endif %}
{% if restriction.permission_blockers %} {% translate "Ask an administrator of the owning project to grant these permissions." %} {% else %} {% translate "Ask your project administrator to coordinate access with the repository owner." %} {% endif %}
{% endfor %}