Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
get rid of the last template we evaluate at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Nov 4, 2014
1 parent 6eae39a commit d48006c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app.pl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
main({
:breadcrumb(['Distributions' => '/dists', ~$distname]),
:content( dist({
:stats( stats([@osnames.sort], $%stats, &template) ),
:stats( stats([@osnames.sort], $%stats, &cell) ),
:report-tables($reports)
}),
)
Expand Down Expand Up @@ -161,7 +161,7 @@
:content(
'<h4>Code quality across operating system, compiler version and backend</h4>' ~
dist({
:stats( stats([@osnames.sort], $%stats, &template) ),
:stats( stats([@osnames.sort], $%stats, &cell) ),
:report-tables(
'<h4>Top 100 reports</h4>' ~
recent-table({ :report-lines(@reports.join("\n")) })
Expand Down
4 changes: 2 additions & 2 deletions views/stats.tt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% my ($osnames, $x, &template) = @_;
% my ($osnames, $x, &cell) = @_;
<thead>
<tr>
<th width="15%">Compiler version</th>
Expand All @@ -11,7 +11,7 @@
do for $x.keys.sort({ Version.new($^b) cmp Version.new($^a)}) -> $compver {
'<tr>
<td>' ~ $compver ~ '</td>
<td>' ~ $osnames.map({ template 'cell.tt', $x{$compver}{$_} }).join('</td><td>') ~ '</td>
<td>' ~ $osnames.map({ cell($x{$compver}{$_}) }).join('</td><td>') ~ '</td>
</tr>';
}
%>
Expand Down

0 comments on commit d48006c

Please sign in to comment.