forked from lix-project/hydra
Fix indentation of build.tt
This commit is contained in:
parent
f544c63607
commit
b5d59c5c63
|
@ -62,8 +62,7 @@
|
|||
</table>
|
||||
[% END %]
|
||||
|
||||
|
||||
<ul class="nav nav-tabs">
|
||||
<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>
|
||||
<li><a href="#tabs-buildinputs" data-toggle="tab">Build inputs</a></li>
|
||||
|
@ -71,8 +70,10 @@
|
|||
[% IF build.buildsteps %]<li><a href="#tabs-buildsteps" data-toggle="tab">Build steps</a></li>[% END %]
|
||||
[% 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">
|
||||
</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>
|
||||
|
@ -347,14 +334,13 @@
|
|||
</div>
|
||||
[% END %]
|
||||
|
||||
[% IF build.buildsteps %]
|
||||
[% IF build.buildsteps %]
|
||||
<div id="tabs-buildsteps" class="tab-pane">
|
||||
[% INCLUDE renderBuildSteps type="All" %]
|
||||
</div>
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
|
||||
[% IF build.dependents %]
|
||||
[% IF build.dependents %]
|
||||
<div id="tabs-usedby" class="tab-pane">
|
||||
|
||||
<h2>Used by</h2>
|
||||
|
@ -377,23 +363,24 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
[% END %]
|
||||
[% IF prevBuilds %]
|
||||
[% END %]
|
||||
|
||||
[% IF prevBuilds %]
|
||||
<div id="tabs-history" class="tab-pane">
|
||||
<h2>Build time history (in seconds)</h2>
|
||||
<div id="placeholder" style="width:800px;height:400px;"></div>
|
||||
<div id="overview" style="margin-left:50px;margin-top:20px;width:600px;height:50px"></div>
|
||||
|
||||
<script src="/static/js/flot/jquery.flot.js" type="text/javascript"></script>
|
||||
<script src="/static/js/flot/jquery.flot.selection.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
<script src="/static/js/flot/jquery.flot.js" type="text/javascript"></script>
|
||||
<script src="/static/js/flot/jquery.flot.selection.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(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,20 +433,19 @@
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</script>
|
||||
|
||||
<h2>Store path size history (in MB)</h2>
|
||||
<div id="placeholder-size" style="width:800px;height:400px;"></div>
|
||||
<div id="overview-size" style="margin-left:50px;margin-top:20px;width:600px;height:50px"></div>
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript">
|
||||
$(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,12 +497,10 @@
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</script>
|
||||
|
||||
</div>
|
||||
[% END %]
|
||||
[% END %]
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -525,7 +508,5 @@
|
|||
$('#tab').tab('show');
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
[% END %]
|
||||
|
||||
|
|
Loading…
Reference in a new issue