summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-01-19 08:12:06 +0100
committerYorhel <git@yorhel.nl>2020-01-19 08:12:09 +0100
commitacd63f13d6a7878fc61bd375c5ec90882eae6c10 (patch)
tree00cd5ce86836f2421d3d0ef6e9ebb79d22f9256a
parent766490ba9dce2bb2e980f90d239983c5c59f0b8b (diff)
Display "[deleted]" users as grayedout "anonymous" insteadHEADmaster
Not sure what I want to achieve with this, to be honest. Just trying something out.
-rw-r--r--lib/VNWeb/HTML.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/HTML.pm b/lib/VNWeb/HTML.pm
index 066cbde9..3231ee7e 100644
--- a/lib/VNWeb/HTML.pm
+++ b/lib/VNWeb/HTML.pm
@@ -73,7 +73,7 @@ sub user_ {
my $capital = shift;
my sub f($) { $obj->{"${prefix}$_[0]"} }
- return lit_ '[deleted]' if !f 'id';
+ return b_ class => 'grayedout', 'anonymous' if !f 'id';
my $fancy = !(auth->pref('nodistract_can') && auth->pref('nodistract_nofancy'));
my $uniname = f 'uniname_can' && f 'uniname';
a_ href => '/u'.f('id'),