Render user display names in trophy messages
Review Request #9932 — Created May 11, 2018 and submitted — Latest diff uploaded
Trophy message rendering has been reworked. Instead of a method that
everyTrophyType
subclass must implement, instead they must only add a
format string attribute. By default, the recipient's name is the only
provided parameter, butTrophyType.format_display_text
can be
overridden to add extra context. All builtin trophies have been updated
to use this new behaviour.
Ran unit tests.
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 8. See what's changed.
orig
1
2
3
4
5
6
7
8
reviewboard/accounts/trophies.py |
---|
reviewboard/reviews/templatetags/reviewtags.py |
---|