Unverified Commit 1f1637da authored by boklm's avatar boklm
Browse files

Only include the 20 latest reports on the index by type

parent ed9ad4ae
......@@ -149,6 +149,7 @@ sub make_reports_index {
foreach my $type ($changed_report ? @changed_type : keys %reports_by_type) {
my @s = sort { $summaries{$b}->{time} <=> $summaries{$a}->{time} }
@{$reports_by_type{$type}};
@s = @s[0..19] if @s > 20;
load_reports_for_index(\%pre_reports_index, @s);
$template->process("reports_index_$type.html",
{ %$vars, reports_list => \@s }, "index-$type.html")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment