0
0
Fork 0
forked from lix-project/hydra

Build page: Show output / closure sizes

This commit is contained in:
Eelco Dolstra 2014-10-07 18:12:00 +02:00
parent 83d4930101
commit aad3a11eca
3 changed files with 18 additions and 2 deletions

View file

@ -342,6 +342,21 @@
<th>Output store paths:</th>
<td><tt>[% INCLUDE renderOutputs outputs=build.buildoutputs %]</tt></td>
</tr>
[% chartsURL = c.uri_for('/job' build.project.name build.jobset.name build.job.name) _ "#tabs-charts" %]
[% IF build.finished && build.closuresize %]
<tr>
<th>Closure size:</th>
<td>[% mibs(build.closuresize / (1024 * 1024)) %] MiB
(<a href="[%chartsURL%]">history</a>)</td>
</tr>
[% END %]
[% IF build.finished && build.closuresize %]
<tr>
<th>Output size:</th>
<td>[% mibs(build.size / (1024 * 1024)) %] MiB
(<a href="[%chartsURL%]">history</a>)</td>
</tr>
[% END %]
[% IF build.finished && build.buildproducts %]
<tr>
<th>Availability:</th>

View file

@ -4,6 +4,9 @@ USE String;
USE HTML;
USE mibs=format("%.2f");
BLOCK renderDateTime;
date.format(timestamp, '%Y-%m-%d %H:%M:%S');
END;

View file

@ -1,5 +1,3 @@
[% USE mibs=format("%.2f") %]
[% BLOCK renderProductLinks %]
<tr>
<th>URL:</th>