{% extends 'uhepp_vault/base.html' %} {% block content %}

{{ user.first_name }} {{ user.last_name }}

Visibility: {% if user.profile.visibility >= 30 %} public {% elif user.profile.visibility >= 20 %} internal {% elif user.profile.visibility >= 10 %} private) {% endif %}

{% if user.username == request.user.username %}

Edit profile

{% endif %}

Home institute: {{ user.profile.home_institute }}

Collection

{% if user.username == request.user.username %}

New collection

{% endif %} {% if user.collections %}
{% for collection in user.collections.all %}
{{ collection.title }} {% if collection.visibility >= 30 %}(public) {% elif collection.visibility >= 20 %}(internal) {% elif collection.visibility >= 10 %}(private) {% endif %} {% if collection.plots.count %} {{ collection.plots.count }} {% endif %}
{{ collection.description }}
{% endfor %}
{% else %}

{{ user.first_name }} has no collections shared with you

{% endif %} {% endblock %}