forked from lix-project/hydra
Fix indentation of build.tt
This commit is contained in:
parent
f544c63607
commit
b5d59c5c63
|
@ -62,7 +62,6 @@
|
|||
</table>
|
||||
[% END %]
|
||||
|
||||
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#tabs-summary" data-toggle="tab">Summary</a></li>
|
||||
<li><a href="#tabs-information" data-toggle="tab">Details</a></li>
|
||||
|
@ -72,7 +71,9 @@
|
|||
[% IF build.dependents %]<li><a href="#tabs-usedby" data-toggle="tab">Used by</a></li>[% END%]
|
||||
[% IF prevBuilds %]<li><a href="#tabs-history" data-toggle="tab">History chart</a></li>[% END %]
|
||||
</ul>
|
||||
|
||||
<div id="generic-tabs" class="tab-content">
|
||||
|
||||
<div id="tabs-summary" class="tab-pane active">
|
||||
|
||||
<table class="layoutTable">
|
||||
|
@ -88,9 +89,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<th>Status:</th>
|
||||
<td>
|
||||
[% INCLUDE renderStatus build=build icon=0 %]
|
||||
</td>
|
||||
<td>[% INCLUDE renderStatus build=build icon=0 %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>System:</th>
|
||||
|
@ -110,16 +109,12 @@
|
|||
[% IF build.iscachedbuild %]
|
||||
<tr>
|
||||
<th>Cached from:</th>
|
||||
<td>
|
||||
[% INCLUDE renderFullBuildLink build=cachedBuild %]
|
||||
</td>
|
||||
<td>[% INCLUDE renderFullBuildLink build=cachedBuild %]</td>
|
||||
</tr>
|
||||
[% ELSE %]
|
||||
<tr>
|
||||
<th>Duration:</th>
|
||||
<td>
|
||||
[% INCLUDE renderDuration duration = build.stoptime - build.starttime %]; finished at [% INCLUDE renderDateTime timestamp = build.stoptime %]
|
||||
</td>
|
||||
<td>[% INCLUDE renderDuration duration = build.stoptime - build.starttime %]; finished at [% INCLUDE renderDateTime timestamp = build.stoptime %]</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
[% IF log_exists(build.drvpath) %]
|
||||
|
@ -201,18 +196,19 @@
|
|||
[% END %]
|
||||
|
||||
[% IF build.errormsg && build.buildstatus != 5 %]
|
||||
|
||||
<h2 id="nix-error">Nix error output</h2>
|
||||
|
||||
<pre class="buildlog">[% HTML.escape(build.errormsg) %]</pre>
|
||||
[% END %]
|
||||
|
||||
[% END %]
|
||||
|
||||
[% IF logtext %]
|
||||
<h2>Log</h2>
|
||||
<pre class="buildlog">[% HTML.escape(logtext) %]</pre>
|
||||
[% END %]
|
||||
|
||||
</div>
|
||||
|
||||
<div id="tabs-information" class="tab-pane">
|
||||
|
||||
<table class="layoutTable">
|
||||
|
@ -252,21 +248,11 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<th>Derivation store path:</th>
|
||||
<td>
|
||||
<tt>[% build.drvpath %]</tt>
|
||||
[% IF drvAvailable %]
|
||||
(<a href="[% c.uri_for('/build' build.id 'deps') %]#buildtime">build-time dependencies</a>)
|
||||
[% END %]
|
||||
</td>
|
||||
<td><tt>[% build.drvpath %]</tt>[% IF drvAvailable %] (<a href="[% c.uri_for('/build' build.id 'deps') %]#buildtime">build-time dependencies</a>)[% END %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Output store paths:</th>
|
||||
<td>
|
||||
<tt>[% INCLUDE renderOutputs outputs=build.buildoutputs %]</tt>
|
||||
[% IF available %]
|
||||
(<a href="[% c.uri_for('/build' build.id 'deps') %]#runtime">runtime dependencies</a>)
|
||||
[% END %]
|
||||
</td>
|
||||
<td><tt>[% INCLUDE renderOutputs outputs=build.buildoutputs %]</tt> [% IF available %](<a href="[% c.uri_for('/build' build.id 'deps') %]#runtime">runtime dependencies</a>)[% END %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Time added:</th>
|
||||
|
@ -304,6 +290,7 @@
|
|||
[% END %]
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div id="tabs-buildinputs" class="tab-pane">
|
||||
|
||||
<table class="tablesorter table table-striped table-condensed">
|
||||
|
@ -331,7 +318,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
<p/>
|
||||
<br />
|
||||
|
||||
[% IF prevBuild %]
|
||||
<h3>Changes since previous build: [% INCLUDE renderFullBuildLink build=prevBuild, hideProjectName=1, hideJobsetName=1 %]</h3>
|
||||
|
@ -353,7 +340,6 @@
|
|||
</div>
|
||||
[% END %]
|
||||
|
||||
|
||||
[% IF build.dependents %]
|
||||
<div id="tabs-usedby" class="tab-pane">
|
||||
|
||||
|
@ -378,6 +364,7 @@
|
|||
</table>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
[% IF prevBuilds %]
|
||||
<div id="tabs-history" class="tab-pane">
|
||||
<h2>Build time history (in seconds)</h2>
|
||||
|
@ -390,10 +377,10 @@
|
|||
$(function() {
|
||||
var d = [];
|
||||
var ids = [];
|
||||
[% FOREACH prevbuild IN prevBuilds %][% IF prevbuild.build.starttime != 0 %]
|
||||
[% FOREACH prevbuild IN prevBuilds; IF prevbuild.build.starttime != 0 %]
|
||||
d.push([[% prevbuild.starttime * 1000 %],[% prevbuild.get_column('actualBuildTime') %]]);
|
||||
ids[[% prevbuild.starttime * 1000 %]] = [% prevbuild.id %] ;
|
||||
[% END %][% END %]
|
||||
[% END; END %]
|
||||
|
||||
var options = {
|
||||
xaxis: { mode: "time" },
|
||||
|
@ -446,7 +433,6 @@
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<h2>Store path size history (in MB)</h2>
|
||||
|
@ -456,10 +442,10 @@
|
|||
$(function() {
|
||||
var d = [];
|
||||
var ids = [];
|
||||
[% FOREACH prevbuild IN prevBuilds %][% IF prevbuild.size != 0 %]
|
||||
[% FOREACH prevbuild IN prevBuilds; IF prevbuild.size != 0 %]
|
||||
d.push([[% prevbuild.starttime * 1000 %],[% prevbuild.size / (1024*1024.0) %]]);
|
||||
ids[[% prevbuild.starttime * 1000 %]] = [% prevbuild.id %] ;
|
||||
[% END %][% END %]
|
||||
[% END; END %]
|
||||
|
||||
var options = {
|
||||
xaxis: { mode: "time" },
|
||||
|
@ -474,7 +460,6 @@
|
|||
},
|
||||
};
|
||||
|
||||
|
||||
var plot = $.plot($("#placeholder-size"), [d], options);
|
||||
|
||||
var overview = $.plot($("#overview-size"), [d], {
|
||||
|
@ -512,10 +497,8 @@
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
|
@ -525,7 +508,5 @@
|
|||
$('#tab').tab('show');
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
[% END %]
|
||||
|
||||
|
|
Loading…
Reference in a new issue