{# Project list item #} {# Expects to have custom_cols and list_parent set #} {% load rules %} {% load projectroles_tags %} {% load projectroles_common_tags %} {% has_perm 'projectroles.view_project' request.user p as can_view_project %} {% get_project_list_indent p list_parent as project_indent %} {% if request.user.is_superuser %} {% get_remote_icon p request as remote_icon %} {% endif %}
{% if can_view_project %} {{ p.title }} {% else %} {{ p.title }} {% endif %} {% if request.user.is_superuser and remote_icon %} {{ remote_icon | safe }} {% endif %} {% if p.type == 'PROJECT' and p.public_guest_access %} {% endif %} {% if p in starred_projects %} {% endif %}
{% for col in project_custom_cols %} {% if col.active %} {% if p.type == 'PROJECT' %} {% get_project_column_value col p as col_val %} {{ col_val | safe }} {% else %} {% endif %} {% endif %} {% endfor %} {% get_user_role_html p request.user as user_role_html %} {{ user_role_html | safe }}