diff options
author | Yorhel <git@yorhel.nl> | 2020-01-09 14:07:56 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-01-09 14:07:58 +0100 |
commit | 3416762e5e5cda330a851af916b136b91bb733e0 (patch) | |
tree | 9c4987b5db4b5460cd1c72b4ac68b125850cf978 /lib/VNDB/Handler/VNPage.pm | |
parent | a462070881b07a4db4898df69d2cb1e04ca9b23e (diff) |
ulist: Rework VN "User options" tab to be more prominent and convenient
Personally not a big fan of this taking so much space when it's not on
the user's list, but people want instant options so there we go. It
probably still blends in too well with the rest of the VN info though,
styling isn't my thing.
And there's no need to hit "Add to list" anymore now.
Diffstat (limited to 'lib/VNDB/Handler/VNPage.pm')
-rw-r--r-- | lib/VNDB/Handler/VNPage.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm index 3556476c..8b01fabc 100644 --- a/lib/VNDB/Handler/VNPage.pm +++ b/lib/VNDB/Handler/VNPage.pm @@ -440,6 +440,7 @@ sub page { _affiliate_links($self, $r); _anime($self, $v) if @{$v->{anime}}; + _useroptions($self, $v, $r) if $self->authInfo->{id}; Tr class => 'nostripe'; @@ -725,9 +726,8 @@ sub _useroptions { ); my $lst = tuwf->dbRowi('SELECT vid, vote FROM ulist_vns WHERE uid =', \$self->authInfo->{id}, 'AND vid =', \$v->{id}); - Tr; - td 'User options'; - td; + Tr class => 'nostripe'; + td colspan => 2; VNWeb::HTML::elm_('UList.VNPage', undef, { uid => 1*$self->authInfo->{id}, vid => 1*$v->{id}, @@ -738,7 +738,7 @@ sub _useroptions { selected => [ map $_->{id}, grep $_->{assigned}, @$labels ], }); end; - end 'tr'; + end; } |