{% if view.kwargs.user and request.META.HTTP_REFERER %}
Back
{% endif %}
{# User detail card #}
{% include 'userprofile/_user_detail.html' %}
{# User additional emails card #}
{% if send_email %}
{% if request.user.is_superuser or request.user == user %}
{% include 'userprofile/_user_email.html' %}
{% endif %}
{% endif %}
{# List of common projects when viewed as different user #}
{# Only show if user has role or public access is set (hide for stats-only) #}
{% if request.user != user and not user.is_superuser %}
{% include 'projectroles/_project_list.html' with other_user=user project_list_starred_default=False %}
{% endif %}