_display-name.html 495 Bytes
Newer Older
1 2
{% load i18n %}

Kálmán Viktor committed
3
{% if user and user.pk %}
4 5 6 7
  {% if show_pic %}
    <img class="profile-avatar" src="{{ user.profile.get_avatar_url }}" />
  {% endif%}

8
  {% if user.get_full_name %}{{ user.get_full_name }}{% else %}{{ user.username }}{% endif %}{% if new_line %}<br />{% endif %}
Kálmán Viktor committed
9 10 11 12 13 14 15

  {% if show_org %}
    {% if user.profile and user.profile.org_id %}
      ({{ user.profile.org_id }})
    {% else %}
      ({% trans "username" %}: {{ user.username }})
    {% endif %}
16
  {% endif %}
17

18
{% endif %}