{% extends "base.html" %}
{% load avatar_tags i18n seahub_tags %}

{% block sub_title %}{% trans "Profile" %} - {% endblock %}
{% block header_css_class %}{% endblock %}

{% block main_panel %}
<div id="user-profile">
{% if user %}
    {% avatar user.username 64 %}
    <p title="{{ nickname }}" class="user-profile-nickname ellipsis">{{ nickname }}</p>
    <ul>
        {% if d_profile %}
        {% if d_profile.department %}
        <li title="{{ d_profile.department }}" class="user-profile-info ellipsis">
            <span class="user-profile-info-icon icon-building fa-1x vam"></span>
            <span class="vam">{{ d_profile.department }}</span>
        </li>
        {% endif %}
        {% if d_profile.telephone %}
        <li title="{{ d_profile.telephone }}" class="user-profile-info ellipsis">
            <span class="user-profile-info-icon icon-phone fa-1x vam"></span>
            <span class="vam">{{ d_profile.telephone }}</span>
        </li>
        {% endif %}
        {% endif %}
        <li title="{{ contact_email }}" class="user-profile-info ellipsis">
            <span class="user-profile-info-icon icon-envelope fa-1x vam"></span>
            <span class="vam">{{ contact_email }}</span>
        </li>
    </ul>

{% else %}
    {% avatar "" 64 %}
{% endif %}
</div>
{% endblock %}
