diff options
author | Yorhel <git@yorhel.nl> | 2019-10-08 18:16:46 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-10-10 16:40:30 +0200 |
commit | b3a9130763879d60c0e413c724a759860bd396af (patch) | |
tree | 2de6f9d21d4ce9f00fc11595906570be43d8ae5c /lib/VNDB/Util/CommonHTML.pm | |
parent | 4c1dfc8bb62171c4c21057c47f238c8747bac3f8 (diff) |
rewards: Apply supporters badge and unicode name (almost) everywhere
Only place where this isn't applied (yet?): Sorting user lists still
goes by the old username and board names don't use the new unicode
names.
I have to say, I quite like the sql_user() and user_() pattern. It's not
without problems when applied to everything, but it's good enough for
several use cases.
Diffstat (limited to 'lib/VNDB/Util/CommonHTML.pm')
-rw-r--r-- | lib/VNDB/Util/CommonHTML.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm index d8e584ab..72febd63 100644 --- a/lib/VNDB/Util/CommonHTML.pm +++ b/lib/VNDB/Util/CommonHTML.pm @@ -214,7 +214,7 @@ sub revheader { # type, obj txt ')'; br; txt 'By '; - lit fmtuser $obj; + VNWeb::HTML::user_($obj); txt ' on '; txt fmtdate $obj->{added}, 'full'; } @@ -401,7 +401,7 @@ sub htmlVoteStats { } elsif($_->{hide_list}) { b class => 'grayedout', 'hidden'; } else { - a href => "/u$_->{uid}", $_->{username}; + VNWeb::HTML::user_($_); } end; td fmtvote $_->{vote}; |