Don't show duration of unfinished builds

This commit is contained in:
Eelco Dolstra 2013-02-26 16:01:00 +01:00
parent 2a3e832fc4
commit 5462be23d5

View file

@ -122,12 +122,14 @@
<td>[% INCLUDE renderFullBuildLink build=cachedBuild %]</td>
</tr>
[% END %]
[% IF build.finished %]
<tr>
<th>Duration:</th>
<td>[% actualBuild = build.iscachedbuild ? cachedBuild : build;
INCLUDE renderDuration duration = actualBuild.stoptime - actualBuild.starttime %]; finished at [% INCLUDE renderDateTime timestamp = actualBuild.stoptime
%]</td>
</tr>
[% END %]
[% IF log_exists(build.drvpath) %]
<tr>
<th>Logfile:</th>