From 8c35d3ad42096856e8243aa081d7a9be03b4d693 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sun, 4 Oct 2020 09:16:15 +0200 Subject: Reviews::VNTab: Move "Full review" button to "Read more" after the summary --- lib/VNWeb/Reviews/VNTab.pm | 3 +-- 1 file changed, 1 insertion(+), 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; }; -- cgit v1.2.3