diff --git a/kitsune/questions/templates/questions/answers.html b/kitsune/questions/templates/questions/answers.html index 5d784bee808..9c930b5cef1 100644 --- a/kitsune/questions/templates/questions/answers.html +++ b/kitsune/questions/templates/questions/answers.html @@ -72,7 +72,7 @@

{{ question.title }}

{% if question.last_answer %}
  • - {{ _('Last reply by {user}')|f(user=question.last_answer.creator.username) }} + {{ _('Last reply by {user}')|f(user=display_name(question.last_answer.creator)) }} {{ question.last_answer.created|timesince }} @@ -102,7 +102,7 @@

    {{ question.title }}

    {% if question.updated_by %}

    - {{ _('Modified {datetime} by {name}')|fe(name=question.updated_by.username, datetime=datetimeformat(question.updated, format='longdatetime')) }} + {{ _('Modified {datetime} by {name}')|fe(name=display_name(question.updated_by), datetime=datetimeformat(question.updated, format='longdatetime')) }}

    {% endif %} diff --git a/kitsune/questions/templates/questions/includes/answer.html b/kitsune/questions/templates/questions/includes/answer.html index 9ccb946fecc..3b664881558 100644 --- a/kitsune/questions/templates/questions/includes/answer.html +++ b/kitsune/questions/templates/questions/includes/answer.html @@ -56,7 +56,7 @@

    {{_('Question owner')}}

    {% if answer.updated_by %}

    - {{ _('Modified {datetime} by {name}')|fe(name=answer.updated_by.username, datetime=datetimeformat(answer.updated, format='longdatetime')) }} + {{ _('Modified {datetime} by {name}')|fe(name=display_name(answer.updated_by), datetime=datetimeformat(answer.updated, format='longdatetime')) }}

    {% endif %} diff --git a/kitsune/questions/templates/questions/mobile/questions.html b/kitsune/questions/templates/questions/mobile/questions.html index 1737cddc455..bfc3cd09e12 100644 --- a/kitsune/questions/templates/questions/mobile/questions.html +++ b/kitsune/questions/templates/questions/mobile/questions.html @@ -17,7 +17,7 @@
      {% if karma_top %} {% for user in karma_top[:10] %} -
    1. {{ user.username }}
    2. +
    3. {{ display_name(user) }}
    4. {% endfor %} {% elif top_contributors %} {% for user in top_contributors[:10] %} diff --git a/kitsune/questions/templates/questions/questions.html b/kitsune/questions/templates/questions/questions.html index a917a832937..39c0cd4a8d8 100644 --- a/kitsune/questions/templates/questions/questions.html +++ b/kitsune/questions/templates/questions/questions.html @@ -81,17 +81,17 @@

      {% if karma_top %}
        {% for u in karma_top[:5] %} - {{ u.username }} + {{ display_name(u) }} {% endfor %}
        {% for u in karma_top[5:10] %} - {{ u.username }} + {{ display_name(u) }} {% endfor %}
      {% if karma_ranking and karma_ranking > 10 %}
        -
      1. {{ user.username }}
      2. +
      3. {{ display_name(user) }}
      {% endif %} {% else %} @@ -202,7 +202,7 @@

      {{ question.title }}

      {% if question.num_answers > 0 and question.last_answer %}
      - {{ _('Last reply by {user}')|f(user=question.last_answer.creator.username) }} + {{ _('Last reply by {user}')|f(user=display_name(question.last_answer.creator)) }} {{ _('on') }} {{ datetimeformat(question.last_answer.created, format='datetime') }}
      {% endif %}