summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-10-16 10:42:37 +0200
committerYorhel <git@yorhel.nl>2019-10-16 10:42:39 +0200
commit1fb8a234cf5a455af6d78c893320b21de8347bc4 (patch)
treeeebbee5fd7dc0a4a931e4c392647c02b152169df
parent3f9a77c094f744f3f781bb0648f6ac2dd09038f5 (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.
-rw-r--r--elm/User/Edit.elm2
-rw-r--r--lib/VNWeb/HTML.pm3
2 files changed, 3 insertions, 2 deletions
diff --git a/elm/User/Edit.elm b/elm/User/Edit.elm
index 680b34d0..aec74d50 100644
--- a/elm/User/Edit.elm
+++ b/elm/User/Edit.elm
@@ -161,7 +161,7 @@ view model =
]
supportform =
- [ tr [ class "newpart" ] [ td [ colspan 2 ] [ text "Supporter options" ] ]
+ [ tr [ class "newpart" ] [ td [ colspan 2 ] [ text "Supporter options⭐" ] ]
, if not data.nodistract_can && not data.authmod then text ""
else formField "" [ label [] [ inputCheck "" data.nodistract_noads (Set << NoAds), text " Disable advertising and other distractions (only hides the Patreon icon for the moment)" ] ]
, if not data.nodistract_can && not data.authmod then text ""
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_;