diff options
author | Yorhel <git@yorhel.nl> | 2015-11-01 13:46:55 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-11-01 13:46:55 +0100 |
commit | 9ab45fccbf8a3370ee0b8afaaae42b7b8c9ad162 (patch) | |
tree | 6fb00dee56195e34c704475819f7a60d710dfc47 /lib/VNDB | |
parent | 8c9cfe238e565088b37d256eb461a01919ef9968 (diff) |
Image viewer: Use HTML5 data- attribute instead of 'rel' for data
The possible values of the rel attribute is fixed, it's not supposed to
be a free-form field.
Diffstat (limited to 'lib/VNDB')
-rw-r--r-- | lib/VNDB/Handler/VNPage.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm index 20f12bf3..02d14139 100644 --- a/lib/VNDB/Handler/VNPage.pm +++ b/lib/VNDB/Handler/VNPage.pm @@ -554,7 +554,7 @@ sub _revision { return @r ? @r : (mt '_revision_empty'); }], [ screenshots => join => '<br />', split => sub { - my @r = map sprintf('[%s] <a href="%s" rel="iv:%dx%d">%d</a> (%s)', + my @r = map sprintf('[%s] <a href="%s" data-iv="%dx%d">%d</a> (%s)', $_->{rid} ? qq|<a href="/r$_->{rid}">r$_->{rid}</a>| : 'no release', imgurl(sf => $_->{id}), $_->{width}, $_->{height}, $_->{id}, mt($_->{nsfw} ? '_vndiff_nsfw_notsafe' : '_vndiff_nsfw_safe') @@ -859,7 +859,7 @@ sub _screenshots { my($w, $h) = imgsize($_->{width}, $_->{height}, @{$self->{scr_size}}); a href => imgurl(sf => $_->{id}), class => sprintf('scrlnk%s%s', $_->{nsfw} ? ' nsfw':'', $_->{nsfw}&&!$self->authPref('show_nsfw')?' hidden':''), - rel => "iv:$_->{width}x$_->{height}:scr"; + 'data-iv' => "$_->{width}x$_->{height}:scr"; img src => imgurl(st => $_->{id}), width => $w, height => $h, alt => mt '_vnpage_scr_num', $_->{id}; end; |