* PROCESS -> INCLUDE in most cases. INCLUDE does proper scoping of
variables.
This commit is contained in:
parent
3c86b3652c
commit
107a0faa51
|
@ -9,7 +9,7 @@
|
||||||
<p>Showing builds [% (page - 1) * resultsPerPage + 1 %] - [% (page - 1) * resultsPerPage + builds.size %]
|
<p>Showing builds [% (page - 1) * resultsPerPage + 1 %] - [% (page - 1) * resultsPerPage + builds.size %]
|
||||||
out of [% totalBuilds %] in order of descending timestamp.</p>
|
out of [% totalBuilds %] in order of descending timestamp.</p>
|
||||||
|
|
||||||
[% PROCESS renderBuildList %]
|
[% INCLUDE renderBuildList %]
|
||||||
|
|
||||||
[<a href="[% "$baseUri/1" %]">First</a>]
|
[<a href="[% "$baseUri/1" %]">First</a>]
|
||||||
[% IF page > 1 %]
|
[% IF page > 1 %]
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
[% END %]
|
[% END %]
|
||||||
[% ELSIF build.schedulingInfo.busy %]
|
[% ELSIF build.schedulingInfo.busy %]
|
||||||
<strong>Build in progress</strong>
|
<strong>Build in progress</strong>
|
||||||
since [% PROCESS renderDateTime timestamp = build.schedulingInfo.starttime %]
|
since [% INCLUDE renderDateTime timestamp = build.schedulingInfo.starttime %]
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
<strong>Scheduled to be built</strong>
|
<strong>Scheduled to be built</strong>
|
||||||
[% IF c.user_exists %]
|
[% IF c.user_exists %]
|
||||||
|
@ -77,15 +77,15 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Project:</th>
|
<th>Project:</th>
|
||||||
<td>[% PROCESS renderProjectName %]</td>
|
<td>[% INCLUDE renderProjectName %]</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Jobset:</th>
|
<th>Jobset:</th>
|
||||||
<td>[% PROCESS renderJobsetName %]</td>
|
<td>[% INCLUDE renderJobsetName %]</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Job name:</th>
|
<th>Job name:</th>
|
||||||
<td>[% PROCESS renderJobName %]</td>
|
<td>[% INCLUDE renderJobName %]</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Nix name:</th>
|
<th>Nix name:</th>
|
||||||
|
@ -137,16 +137,16 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Time added:</th>
|
<th>Time added:</th>
|
||||||
<td>[% PROCESS renderDateTime timestamp = build.timestamp %]</td>
|
<td>[% INCLUDE renderDateTime timestamp = build.timestamp %]</td>
|
||||||
</tr>
|
</tr>
|
||||||
[% IF build.finished && build.resultInfo.buildstatus != 4 %]
|
[% IF build.finished && build.resultInfo.buildstatus != 4 %]
|
||||||
<tr>
|
<tr>
|
||||||
<th>Build started:</th>
|
<th>Build started:</th>
|
||||||
<td>[% IF build.resultInfo.starttime %][% PROCESS renderDateTime timestamp = build.resultInfo.starttime %][% ELSE %]<em>(cached build)</em>[% END %]</td>
|
<td>[% IF build.resultInfo.starttime %][% INCLUDE renderDateTime timestamp = build.resultInfo.starttime %][% ELSE %]<em>(cached build)</em>[% END %]</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Build finished:</th>
|
<th>Build finished:</th>
|
||||||
<td>[% IF build.resultInfo.stoptime %][% PROCESS renderDateTime timestamp = build.resultInfo.stoptime %][% ELSE %]<em>(cached build)</em>[% END %]</td>
|
<td>[% IF build.resultInfo.stoptime %][% INCLUDE renderDateTime timestamp = build.resultInfo.stoptime %][% ELSE %]<em>(cached build)</em>[% END %]</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Duration:</th>
|
<th>Duration:</th>
|
||||||
|
@ -189,7 +189,7 @@
|
||||||
<td><tt>[% type = input.type; inputTypes.$type %]</tt></td>
|
<td><tt>[% type = input.type; inputTypes.$type %]</tt></td>
|
||||||
<td>
|
<td>
|
||||||
[% IF input.type == "build" %]
|
[% IF input.type == "build" %]
|
||||||
Job [% PROCESS renderFullJobNameOfBuild build=input.dependency %] <a href="[% c.uri_for('/build' input.dependency.id) %]">build [% input.dependency.id %]</a>
|
Job [% INCLUDE renderFullJobNameOfBuild build=input.dependency %] <a href="[% c.uri_for('/build' input.dependency.id) %]">build [% input.dependency.id %]</a>
|
||||||
[% ELSIF input.type == "string" || input.type == "boolean" %]
|
[% ELSIF input.type == "string" || input.type == "boolean" %]
|
||||||
<tt>"[% input.value %]"</tt>
|
<tt>"[% input.value %]"</tt>
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
|
@ -282,7 +282,7 @@
|
||||||
<p class="error">Note: this build is no longer available.</p>
|
<p class="error">Note: this build is no longer available.</p>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
[% PROCESS renderProductList %]
|
[% INCLUDE renderProductList %]
|
||||||
|
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
|
@ -300,10 +300,10 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
[% FOREACH input IN build.dependents -%]
|
[% FOREACH input IN build.dependents -%]
|
||||||
<tr>
|
<tr>
|
||||||
<td>Job [% PROCESS renderFullJobNameOfBuild build=input.build %] <a href="[% c.uri_for('/build' input.build.id) %]">build [% input.build.id %]</a></td>
|
<td>Job [% INCLUDE renderFullJobNameOfBuild build=input.build %] <a href="[% c.uri_for('/build' input.build.id) %]">build [% input.build.id %]</a></td>
|
||||||
<td><tt>[% input.name %]</tt></td>
|
<td><tt>[% input.name %]</tt></td>
|
||||||
<td><tt>[% input.build.system %]</tt></td>
|
<td><tt>[% input.build.system %]</tt></td>
|
||||||
<td>[% PROCESS renderDateTime timestamp = input.build.timestamp %]</td>
|
<td>[% INCLUDE renderDateTime timestamp = input.build.timestamp %]</td>
|
||||||
</tr>
|
</tr>
|
||||||
[% END -%]
|
[% END -%]
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
@ -32,14 +32,14 @@
|
||||||
|
|
||||||
[% BLOCK renderFullJobName %]
|
[% BLOCK renderFullJobName %]
|
||||||
<tt>
|
<tt>
|
||||||
[% PROCESS renderProjectName %]:[% PROCESS renderJobsetName %]:[% PROCESS renderJobName %]
|
[% INCLUDE renderProjectName %]:[% INCLUDE renderJobsetName %]:[% INCLUDE renderJobName %]
|
||||||
</a>
|
</a>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
|
|
||||||
[% BLOCK renderFullJobNameOfBuild %]
|
[% BLOCK renderFullJobNameOfBuild %]
|
||||||
<tt>
|
<tt>
|
||||||
[% PROCESS renderFullJobName project=build.get_column("project") jobset = build.get_column("jobset") job = build.get_column("job") %]
|
[% INCLUDE renderFullJobName project=build.get_column("project") jobset = build.get_column("jobset") job = build.get_column("job") %]
|
||||||
</a>
|
</a>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
<td>[% build.schedulingInfo.priority %]</td>
|
<td>[% build.schedulingInfo.priority %]</td>
|
||||||
[% END %]
|
[% END %]
|
||||||
<td>
|
<td>
|
||||||
[% PROCESS renderFullJobNameOfBuild %]
|
[% INCLUDE renderFullJobNameOfBuild %]
|
||||||
</td>
|
</td>
|
||||||
<td>[% build.resultInfo.releasename ? build.resultInfo.releasename : build.nixname %]</td>
|
<td>[% build.resultInfo.releasename ? build.resultInfo.releasename : build.nixname %]</td>
|
||||||
<td><tt>[% build.system %]</tt></td>
|
<td><tt>[% build.system %]</tt></td>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<h2>Statistics</h2>
|
<h2>Statistics</h2>
|
||||||
|
|
||||||
[% PROCESS showBuildStats %]
|
[% INCLUDE showBuildStats %]
|
||||||
|
|
||||||
|
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
|
@ -5,6 +5,6 @@
|
||||||
|
|
||||||
<p>Below are the latest builds for each job.</p>
|
<p>Below are the latest builds for each job.</p>
|
||||||
|
|
||||||
[% PROCESS renderBuildList builds=latestBuilds %]
|
[% INCLUDE renderBuildList builds=latestBuilds %]
|
||||||
|
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
|
@ -146,7 +146,7 @@
|
||||||
[% content %]
|
[% content %]
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<hr />
|
<hr />
|
||||||
Generated on [% PROCESS renderDateTime %].
|
Generated on [% INCLUDE renderDateTime %].
|
||||||
[% IF c.user_exists %]
|
[% IF c.user_exists %]
|
||||||
You are logged in as <tt>[% c.user.username %]</tt>.
|
You are logged in as <tt>[% c.user.username %]</tt>.
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
<th>Last checked:</th>
|
<th>Last checked:</th>
|
||||||
<td>
|
<td>
|
||||||
[% IF jobset.lastcheckedtime %]
|
[% IF jobset.lastcheckedtime %]
|
||||||
[% PROCESS renderDateTime timestamp = jobset.lastcheckedtime -%][% IF jobset.errormsg -%]<em>, evaluation error</em>:
|
[% INCLUDE renderDateTime timestamp = jobset.lastcheckedtime -%][% IF jobset.errormsg -%]<em>, evaluation error</em>:
|
||||||
<pre class="multiLineMsg error">[% HTML.escape(jobset.errormsg) %]</pre>
|
<pre class="multiLineMsg error">[% HTML.escape(jobset.errormsg) %]</pre>
|
||||||
[% ELSE %], <em>no errors</em>
|
[% ELSE %], <em>no errors</em>
|
||||||
[% END %]
|
[% END %]
|
||||||
|
@ -192,7 +192,7 @@
|
||||||
|
|
||||||
<h2>Statistics</h2>
|
<h2>Statistics</h2>
|
||||||
|
|
||||||
[% PROCESS showBuildStats %]
|
[% INCLUDE showBuildStats %]
|
||||||
|
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
currently executing. Builds in <span
|
currently executing. Builds in <span
|
||||||
class="disabledBuild">grey</span> are currently disabled.</p>
|
class="disabledBuild">grey</span> are currently disabled.</p>
|
||||||
|
|
||||||
[% PROCESS renderBuildList builds=queue showSchedulingInfo=1 hideResultInfo=1 %]
|
[% INCLUDE renderBuildList builds=queue showSchedulingInfo=1 hideResultInfo=1 %]
|
||||||
|
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<th>Release</th>
|
<th>Release</th>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
[% FOREACH job IN jobs %]
|
[% FOREACH job IN jobs %]
|
||||||
<th class="releaseSetJobName">[% PROCESS renderReleaseJobName %]</th>
|
<th class="releaseSetJobName">[% INCLUDE renderReleaseJobName %]</th>
|
||||||
[% END %]
|
[% END %]
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
Loading…
Reference in a new issue