{% extends 'projectroles/base.html' %} {% load projectroles_common_tags %} {% block title %}Remote Sites{% endblock title %} {% block css %} {{ block.super }} {% endblock css %} {% block projectroles %} {% get_django_setting 'PROJECTROLES_SITE_MODE' as site_mode %}

Remote Sites

{% if site_mode == 'SOURCE' or not sites %} {% if site_mode == 'TARGET' %} Set Source Site {% else %} Add Target Site {% endif %} {% endif %}
{% if sites.count == 0 %}
{% if site_mode == 'SOURCE' %} No target sites have been added. {% else %} A source site has not been set. {% endif %}
{% else %}

{% if site_mode == 'SOURCE' %} Target Sites {% else %} Source Site {% endif %}

{% if site_mode == 'SOURCE' %} {% endif %} {% for site in sites %} {% include 'projectroles/_remote_site_list_item.html' %} {% endfor %}
Name URL {% get_display_name 'PROJECT' title=True plural=True %} Token AccessedVisible
{% endif %}
Your site is in {{ site_mode }} mode.
{% get_django_setting 'PROJECTROLES_ALLOW_LOCAL_USERS' as allow_local_users %} {% if site_mode == 'TARGET' and allow_local_users %}
PROJECTROLES_ALLOW_LOCAL_USERS is enabled in site configuration. Please note that this will allow synchronizing project roles to local non-LDAP users based on the user name. You should personally ensure that the users in question are authorized for these roles. Furthermore, only roles for existing local users will be synchronized. New local users will have to be added manually through the Django admin or shell.
{% endif %}
{% endblock projectroles %} {% block javascript %} {{ block.super }} {% get_django_setting 'PROJECTROLES_SITE_MODE' as site_mode %} {% endblock javascript %}