diff --git a/core/templates/core/macros.jinja b/core/templates/core/macros.jinja index 6239c695..244617c5 100644 --- a/core/templates/core/macros.jinja +++ b/core/templates/core/macros.jinja @@ -2,6 +2,10 @@ {{ user.get_display_name() }} {%- endmacro %} +{% macro user_profile_link_short_name(user) -%} +{{ user.get_short_name() }} +{%- endmacro %} + {% macro user_link_with_pict(user) -%} {{ user.get_mini_item()|safe }} diff --git a/forum/templates/forum/macros.jinja b/forum/templates/forum/macros.jinja index 59e13196..c8331d1d 100644 --- a/forum/templates/forum/macros.jinja +++ b/forum/templates/forum/macros.jinja @@ -1,4 +1,4 @@ -{% from 'core/macros.jinja' import user_profile_link %} +{% from 'core/macros.jinja' import user_profile_link_short_name %} {% macro display_forum(forum, user, is_root=False) %}
@@ -29,7 +29,7 @@

{% if forum.last_message %} - {{ forum.last_message.author }}
+ {{ user_profile_link_short_name(forum.last_message.author) }}
{{ forum.last_message.date|localtime|date(DATETIME_FORMAT) }} @@ -66,7 +66,7 @@

- {{ user_profile_link(topic.author) }} + {{ user_profile_link_short_name(topic.author) }}

{{ topic._message_number }} @@ -75,7 +75,7 @@

{% set last_msg = topic.last_message %} {% if last_msg %} - {{ user_profile_link(last_msg.author) }}
+ {{ user_profile_link_short_name(last_msg.author) }}
{{ last_msg.date|date(DATETIME_FORMAT) }} {{ last_msg.date|time(DATETIME_FORMAT) }} @@ -133,7 +133,7 @@

    {% for meta in m.metas.select_related('user').order_by('id') %}
  • - {{ meta.get_action_display() }} {{ meta.user.get_display_name() }} + {{ meta.get_action_display() }} {{ meta.user.get_short_name() }} {% trans %} at {% endtrans %}{{ meta.date|localtime|time(DATETIME_FORMAT) }} {% trans %} the {% endtrans %}{{ meta.date|localtime|date(DATETIME_FORMAT)}}
  • {% endfor %}