- {{ "{{ user }} commented your article." | _(user=notification.object.user.display_name | escape) }} + {{ "{{ user }} commented your article." | _(user=notification.object.user.name | escape) }}
- {{ "{{ user }} is now following you." | _(user=notification.object.follower.display_name | escape) }} + {{ "{{ user }} is now following you." | _(user=notification.object.follower.name | escape) }}
{{ notification.creation_date | date(format="%B %e, %H:%m") }}
@@ -33,7 +33,7 @@- {{ "{{ user }} liked your article." | _(user=notification.object.user.display_name | escape) }} + {{ "{{ user }} liked your article." | _(user=notification.object.user.name | escape) }}
- {{ "{{ user }} mentioned you." | _(user=notification.object.user.display_name | escape) }} + {{ "{{ user }} mentioned you." | _(user=notification.object.user.name | escape) }}
{{ notification.creation_date | date(format="%B %e, %H:%m") }}
@@ -52,7 +52,7 @@- {{ "{{ user }} reshared your article." | _(user=notification.object.user.display_name | escape) }} + {{ "{{ user }} reshared your article." | _(user=notification.object.user.name | escape) }}
{{ post.title }}
- - {% if author.display_name %} - {% set name = author.display_name %} - {% else %} - {% set name = author.username %} - {% endif %} -
diff --git a/templates/users/followers.html.tera b/templates/users/followers.html.tera index 8757857a..6c330e20 100644 --- a/templates/users/followers.html.tera +++ b/templates/users/followers.html.tera @@ -2,13 +2,7 @@ {% import "macros" as macros %} {% block title %} -{% if user.display_name %} - {% set name = user.display_name %} -{% else %} - {% set name = user.username %} -{% endif %} - -{{ "{{ name | escape }}'s followers" | _(name=name) }} +{{ "{{ name | escape }}'s followers" | _(name=user.name) }} {% endblock title %} {% block content %} @@ -17,13 +11,8 @@{{ "Followers" | _ }}
{{ follower_name }} @{{ follower.fqn }}
+{{ follower.name }} @{{ follower.fqn }}
{{ follower.summary | safe }}