{% extends "common/base.html" %} {% load static %} {% block title %} User Projects and Managers{% if not user == viewed_user %}: {{ viewed_user.username }}{% endif %} {% endblock %} {% block content %}

User Projects and Managers{% if not user == viewed_user %}: {{ viewed_user.username }}{% endif %}

{% with object_list as user_project_associations %} {% if not user_project_associations %} {% else %} {% for association in user_project_associations %} {% with association.project as project %}

{{ project.title }}

{% if user == viewed_user or perms.project.can_view_all_projects %} Details {% endif %}
{# support non-default roles #} {% if not association.is_project_manager and not association.role.name == 'User' %}

User role in project: {{ association.role }}

{% endif %} {# a few Pending statuses may be displayed here #}

User status in project: {% if association.status.name == 'Active' %} {{ association.status.name }} {% else %} {{ association.status.name }} {% endif %}

Description: {{ project.description }}

Field of Science: {{ project.field_of_science }}

Project Status: {{ project.status }}

Principal Investigator: {{ project.pi.first_name }} {{ project.pi.last_name }} ({{ project.pi.username }}) Email {% if association.is_project_pi %} ({{ user_pronounish | lower }} {{user_verbform_be}} the project PI) {% endif %}

{# card within a card #}

Additional Managers

{{ project.project_managers | length }} {% if association.is_project_manager and not association.is_project_pi %}

{{ user_pronounish }} {{user_verbform_be}} a manager of this project.

{% endif %}
{% if project.project_managers %}
{% for user in project.project_managers %} {% if user.status.name == 'Active' %} {% else %} {% endif %} {% endfor %}
Username Name Email Status
{{ user.user.username }} {{ user.user.first_name }} {{ user.user.last_name }} {{ user.user.email }} {{ user.status.name }}{{ user.status.name }}
{% else %} {% endif %}
{% endwith %} {% endfor %} {% endif %} {% endwith %} Back to user profile {% endblock %}