{% 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 %}
{% if not update_data %}
No remote data received from source site "{{ site.name }}".
{% else %}
{% if user_count > 0 %}
User |
Status |
{% for u_uuid, u in update_data.users.items %}
{% if u.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 %}
{% endfor %}
{% endif %}
{% if project_count > 0 %}
{% get_display_name 'CATEGORY' title=True %}/{% get_display_name 'PROJECT' title=True %} |
Status |
{% for p_uuid, p in update_data.projects.items %}
{% if p.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 %}
{% endfor %}
{% endif %}
{% if role_count > 0 %}
{% get_display_name 'PROJECT' title=True %} |
User |
Role |
Status |
{% 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 %}
{% 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 %}
{% endfor %}
{% endfor %}
{% endif %}
{% if app_settings_count > 0 %}
{% get_display_name 'PROJECT' title=True %} |
Name |
Plugin |
Value |
Status |
{% for a in update_data.app_settings.values %}
{% if a.status and a.status != 'skipped' %}
{% 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 %}
{% endfor %}
{% endif %}
{% endif %}
{% endblock projectroles %}