forked from lix-project/hydra
Build page: Show output / closure sizes
This commit is contained in:
parent
83d4930101
commit
aad3a11eca
3 changed files with 18 additions and 2 deletions
src/root
|
@ -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>
|
||||
|
|
|
@ -4,6 +4,9 @@ USE String;
|
|||
USE HTML;
|
||||
|
||||
|
||||
USE mibs=format("%.2f");
|
||||
|
||||
|
||||
BLOCK renderDateTime;
|
||||
date.format(timestamp, '%Y-%m-%d %H:%M:%S');
|
||||
END;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
[% USE mibs=format("%.2f") %]
|
||||
|
||||
[% BLOCK renderProductLinks %]
|
||||
<tr>
|
||||
<th>URL:</th>
|
||||
|
|
Loading…
Reference in a new issue