{% extends 'projectroles/base.html' %} {% load crispy_forms_filters %} {% load projectroles_tags %} {% load projectroles_common_tags %} {% block title %} Synchronize {% get_display_name 'PROJECT' title=True plural=True %} from {{ site.name }} {% endblock %} {% block css %} {{ block.super }} {% endblock css %} {% block projectroles %} {% get_django_setting 'PROJECTROLES_SITE_MODE' as site_mode %}

Synchronize {% get_display_name 'PROJECT' title=True plural=True %} from {{ site.name }}

Back to Sites
{% if not update_data %}
No remote data received from source site "{{ site.name }}".
{% else %} {% if user_count > 0 %}

Users ({{ user_count }})

{% for u_uuid, u in update_data.users.items %} {% if u.status %} {% endif %} {% endfor %}
User Status
{% get_user_by_username u.username as user_obj %} {% if user_obj %} {% get_user_html user_obj as user_html %} {{ user_html | safe }} {% else %} {{ u.username }} {% endif %} {{ u.status | title }} {% if u.status_msg %} {% get_info_link content=u.status_msg as i_link %} {{ i_link | safe }} {% endif %}
{% endif %} {% if project_count > 0 %}

{% get_display_name 'CATEGORY' title=True plural=True %} and {% get_display_name 'PROJECT' title=True plural=True %} ({{ project_count }})

{% for p_uuid, p in update_data.projects.items %} {% if p.status %} {% endif %} {% endfor %}
{% get_display_name 'CATEGORY' title=True %}/{% get_display_name 'PROJECT' title=True %} Status
{% get_project_by_uuid p_uuid as p_obj %} {% if p_obj %} {% get_project_link p_obj full_title=True as p_link %} {{ p_link | safe }} {% else %} {{ p.title }} {% endif %} {{ p.status | title }} {% if p.status_msg %} {% get_info_link content=p.status_msg as i_link %} {{ i_link | safe }} {% endif %}
{% endif %} {% if role_count > 0 %}

Members ({{ role_count }})

{% for p_uuid, p in update_data.projects.items %} {% for r_uuid, r in p.roles.items %} {% get_project_by_uuid p_uuid as p_obj %} {% get_user_by_username r.user as user_obj %} {% if r.status %} {% endif %} {% endfor %} {% endfor %}
{% get_display_name 'PROJECT' title=True %} User Role Status
{% if p_obj %} {% get_project_link p_obj full_title=True as p_link %} {{ p_link | safe }} {% else %} {{ p.title }} {% endif %} {% if user_obj %} {% get_user_html user_obj as user_html %} {{ user_html | safe }} {% else %} {{ r.user }} {% endif %} {{ r.role }} {{ r.status | title }} {% if r.status_msg %} {% get_info_link content=r.status_msg as i_link %} {{ i_link | safe }} {% endif %}
{% endif %} {% if app_settings_count > 0 %}

App Settings ({{ app_settings_count }})

{% for a in update_data.app_settings.values %} {% if a.status and a.status != 'skipped' %} {% endif %} {% endfor %}
{% get_display_name 'PROJECT' title=True %} Name Plugin Value Status
{% get_project_by_uuid a.project_uuid as p_obj %} {% if p_obj %} {% get_project_link p_obj full_title=True as p_link %} {{ p_link | safe }} {% else %} {{ p.title }} {% endif %} {{ a.name }} {% if a.app_plugin %}{{ a.app_plugin }}{% else %}projectroles{% endif %} {% if a.type == 'JSON' %} {{ a.value_json }} {% elif a.type == 'BOOLEAN' %} {% if a.value == '1' %}True{% else %}False{% endif %} {% else %} {{ a.value }} {% endif %} {{ a.status | title }}
{% endif %} {% endif %}
{% endblock projectroles %}