Fix 'more...' links on the homepage
This commit is contained in:
parent
187c3b8e87
commit
4f6ae4c539
3 changed files with 67 additions and 5 deletions
|
|
@ -81,8 +81,11 @@ sub home {
|
|||
b $sys->[0]{name};
|
||||
if(@$sys > 1) {
|
||||
my $i = 0;
|
||||
a href => "/browse/$_->{short}", ++$i > 3 ? (class => "old") : (), $_->{release} for(reverse @$sys);
|
||||
a href => "#", 'more...' if $i > 3;
|
||||
for(reverse @$sys) {
|
||||
a href => "/browse/$_->{short}", ++$i > 3 ? (class => 'hidden') : (), $_->{release};
|
||||
lit ' ';
|
||||
}
|
||||
a href => "#", class => 'more', 'more...' if $i > 3;
|
||||
}
|
||||
end 'a' if @$sys == 1;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue