forked from lix-project/hydra
Build page: Show output / closure sizes
This commit is contained in:
parent
83d4930101
commit
aad3a11eca
|
@ -342,6 +342,21 @@
|
||||||
<th>Output store paths:</th>
|
<th>Output store paths:</th>
|
||||||
<td><tt>[% INCLUDE renderOutputs outputs=build.buildoutputs %]</tt></td>
|
<td><tt>[% INCLUDE renderOutputs outputs=build.buildoutputs %]</tt></td>
|
||||||
</tr>
|
</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 %]
|
[% IF build.finished && build.buildproducts %]
|
||||||
<tr>
|
<tr>
|
||||||
<th>Availability:</th>
|
<th>Availability:</th>
|
||||||
|
|
|
@ -4,6 +4,9 @@ USE String;
|
||||||
USE HTML;
|
USE HTML;
|
||||||
|
|
||||||
|
|
||||||
|
USE mibs=format("%.2f");
|
||||||
|
|
||||||
|
|
||||||
BLOCK renderDateTime;
|
BLOCK renderDateTime;
|
||||||
date.format(timestamp, '%Y-%m-%d %H:%M:%S');
|
date.format(timestamp, '%Y-%m-%d %H:%M:%S');
|
||||||
END;
|
END;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
[% USE mibs=format("%.2f") %]
|
|
||||||
|
|
||||||
[% BLOCK renderProductLinks %]
|
[% BLOCK renderProductLinks %]
|
||||||
<tr>
|
<tr>
|
||||||
<th>URL:</th>
|
<th>URL:</th>
|
||||||
|
|
Loading…
Reference in a new issue