Allow users to change their display name

Fixes #269
This commit is contained in:
rubenwardy
2021-02-25 23:25:33 +00:00
parent 96b5b4ea5b
commit dea5a52c86
11 changed files with 53 additions and 22 deletions

View File

@@ -5,14 +5,12 @@
{{ notification.title }}
</h2>
<p>
{% if notification.package %}
{{ _("From %(username)s and on package %(package)s.",
username=notification.causer.display_name, package=notification.package.title) }}
username=notification.causer.username, package=notification.package.title) }}
{% else %}
{{ _("From %(username)s.", username=notification.causer.display_name) }}
{{ _("From %(username)s.", username=notification.causer.username) }}
{% endif %}
</p>

View File

@@ -11,7 +11,7 @@
{% for notification in group %}
<li>
<a href="{{ notification.url | abs_url }}">{{ notification.title }}</a> -
{{ _("from %(username)s.", username=notification.causer.display_name) }}
{{ _("from %(username)s.", username=notification.causer.username) }}
</li>
{% endfor %}
</ul>