diff options
author | Yorhel <git@yorhel.nl> | 2019-12-24 10:51:27 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-12-24 10:55:18 +0100 |
commit | 444990e4d924903d28b3f33c53f7df37c23b3f32 (patch) | |
tree | 824db6e0fbb0a5cc9f1a3069316916dcc7984e8c /lib/VNDB/Util | |
parent | 0916ec2e23f7c15a484781894ee0edee728ecd13 (diff) |
ulist: Add list management widget on VN pages
Minimal version. It reuses the LabelEdit and VoteEdit widgets, but
doesn't allow setting a note or start/finish date at the moment.
VN pages now have both v2rw.js and the old vndb.js; Those two scripts
aren't meant to be used together on a single page, so I'm hoping this
will be temporary. I removed the 'checkall' handling from vndb.js as
that might conflict. It's only used on the old list pages anyway.
Diffstat (limited to 'lib/VNDB/Util')
-rw-r--r-- | lib/VNDB/Util/LayoutHTML.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm index 1b6ce1de..6bafbeda 100644 --- a/lib/VNDB/Util/LayoutHTML.pm +++ b/lib/VNDB/Util/LayoutHTML.pm @@ -11,6 +11,7 @@ our @EXPORT = qw|htmlHeader htmlFooter|; sub htmlHeader { # %options->{ title, noindex, search, feeds, metadata } my($self, %o) = @_; + %VNWeb::HTML::pagevars = (); $o{og} = $o{metadata} ? +{ map +(s/og://r, $o{metadata}{$_}), keys $o{metadata}->%* } : undef; $o{index} = !$o{noindex}; @@ -34,6 +35,7 @@ sub htmlFooter { # %options => { pref_code => 1 } noscript id => 'pref_code', title => $self->authGetCode('/xml/prefs.xml'), '' if $o{pref_code} && $self->authInfo->{id}; script type => 'text/javascript', src => $self->{url_static}.'/f/vndb.js?'.$self->{version}, ''; + VNWeb::HTML::v2rwjs_() if $o{v2rwjs}; end 'body'; end 'html'; } |