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

Kálmán Viktor committed
3 4 5
{% if user and user.pk %}
  {% if user.get_full_name %}
    {{ user.get_full_name }}
6
  {% else %}
Kálmán Viktor committed
7 8 9 10 11 12 13 14 15
    {{ user.username }}
  {% endif %}

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