diff options
author | Yorhel <git@yorhel.nl> | 2019-10-16 10:42:37 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-10-16 10:42:39 +0200 |
commit | 1fb8a234cf5a455af6d78c893320b21de8347bc4 (patch) | |
tree | eebbee5fd7dc0a4a931e4c392647c02b152169df /lib | |
parent | 3f9a77c094f744f3f781bb0648f6ac2dd09038f5 (diff) |
Display star next to 'My profile' link when supporter options are available
It's not very obvious when a users' account has been linked, and it
wasn't clear to some that the rewards need to be enabled manually.
Hopefully this clears up both.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNWeb/HTML.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNWeb/HTML.pm b/lib/VNWeb/HTML.pm index 8c5b17e5..f11019ca 100644 --- a/lib/VNWeb/HTML.pm +++ b/lib/VNWeb/HTML.pm @@ -193,9 +193,10 @@ sub _menu_ { div_ class => 'menubox', sub { my $uid = sprintf '/u%d', auth->uid; my $nc = auth && tuwf->dbVali('SELECT count(*) FROM notifications WHERE uid =', \auth->uid, 'AND read IS NULL'); + my $support_opt = auth->pref('nodistract_can') || auth->pref('support_can') || auth->pref('uniname_can') || auth->pref('pubskin_can'); h2_ sub { user_ auth->user, 'user_', 1 }; div_ sub { - a_ href => "$uid/edit", 'My Profile'; br_; + a_ href => "$uid/edit", 'My Profile'; txt_ '⭐' if $support_opt; br_; a_ href => "$uid/list", 'My Visual Novel List'; br_; a_ href => "$uid/votes",'My Votes'; br_; a_ href => "$uid/wish", 'My Wishlist'; br_; |