{% load i18n %} {% load l10n %} {% load rules %} {% has_perm 'accounts.view_profile' viewer user as can_view_profile %} {% has_perm 'accounts.view_profile_username' viewer user as can_view_username %}
{% translate 'Name' %} | {{ user.name|truncatechars:50 }} |
---|---|
{% translate 'Username' context user.get_gender %} | {{ user.slug }} |
{% translate 'Gender' %} | {{ user.get_gender_display }} |
{% if can_view_dob_day_month %}{% translate 'Birth Date' %}{% elif can_view_dob_year %}{% translate 'Birth Year' %}{% endif %} | {% if can_view_dob_day_month and can_view_dob_year %} {{ user.date_of_birth|date:"DATE_FORMAT" }} {% elif can_view_dob_day_month %} {{ user.date_of_birth|date:"MONTH_DAY_FORMAT" }} {% elif can_view_dob_year %} {{ user.date_of_birth|date:"YEAR_FORMAT" }} {% endif %} |
{% translate 'Age' %} | {{ user.get_age }} |
{% translate 'Email' %} | {{ address }} |