diff options
author | Yorhel <git@yorhel.nl> | 2020-10-04 09:16:15 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-10-04 09:16:15 +0200 |
commit | 8c35d3ad42096856e8243aa081d7a9be03b4d693 (patch) | |
tree | 421e7a8b5379a7c03d936ed19cdcae72b2908e34 /lib | |
parent | 6c6f3b0f34307d98b3d67ae5b6bc17d4460fe0eb (diff) |
Reviews::VNTab: Move "Full review" button to "Read more" after the summary
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNWeb/Reviews/VNTab.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/VNWeb/Reviews/VNTab.pm b/lib/VNWeb/Reviews/VNTab.pm index 796193b1..8b372e5a 100644 --- a/lib/VNWeb/Reviews/VNTab.pm +++ b/lib/VNWeb/Reviews/VNTab.pm @@ -43,7 +43,7 @@ sub reviews_ { txt_ '>'; }; my $html = reviews_format $r, maxlength => $mini ? undef : 700; - $html .= '...' if !$mini; + $html .= xml_string sub { txt_ '... '; a_ href => "/$r->{id}#review", ' Read more »' } if !$mini; if($r->{spoiler}) { label_ class => 'review_spoil', sub { input_ type => 'checkbox', class => 'visuallyhidden', (auth->pref('spoilers')||0) == 2 ? ('checked', 'checked') : (), undef; @@ -55,7 +55,6 @@ sub reviews_ { } }; div_ sub { - a_ href => "/$r->{id}#review", 'Full review »' if !$mini; a_ href => "/$r->{id}#threadstart", $r->{c_count} == 1 ? '1 comment' : "$r->{c_count} comments"; reviews_vote_ $r; }; |