2013-02-21 01:33:57 +00:00
|
|
|
[% WRAPPER layout.tt title="Jobset $project.name:$jobset.name" %]
|
2009-04-02 16:15:57 +00:00
|
|
|
[% PROCESS common.tt %]
|
|
|
|
|
|
|
|
|
2013-03-19 15:14:47 +00:00
|
|
|
[% BLOCK renderJobsetInput %]
|
2009-04-02 16:15:57 +00:00
|
|
|
<tr class="input [% extraClass %]" [% IF id %]id="[% id %]"[% END %]>
|
|
|
|
<td>
|
2013-02-21 01:33:57 +00:00
|
|
|
<tt>[% HTML.escape(input.name) %]</tt>
|
2009-04-02 16:15:57 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
[% INCLUDE renderSelection curValue=input.type param="$baseName-type" options=inputTypes %]
|
|
|
|
</td>
|
|
|
|
<td class="inputalts" id="[% baseName %]">
|
2013-02-14 15:51:42 +00:00
|
|
|
[% FOREACH alt IN input.jobsetinputalts %]
|
2009-04-02 16:15:57 +00:00
|
|
|
<tt class="inputalt">
|
2013-02-21 01:33:57 +00:00
|
|
|
[% IF input.type == "string" %]
|
2009-04-02 16:15:57 +00:00
|
|
|
"[% HTML.escape(alt.value) %]"
|
|
|
|
[% ELSE %]
|
2013-02-21 01:33:57 +00:00
|
|
|
[% HTML.escape(alt.value) %]
|
2009-04-02 16:15:57 +00:00
|
|
|
[% END %]
|
|
|
|
</tt>
|
|
|
|
[% END %]
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
|
2013-03-19 15:14:47 +00:00
|
|
|
[% BLOCK renderJobsetInputs %]
|
2013-02-21 01:33:57 +00:00
|
|
|
<h3>Inputs</h3>
|
2013-04-26 12:49:11 +00:00
|
|
|
<table class="table table-striped table-condensed">
|
2013-02-21 01:33:57 +00:00
|
|
|
<thead>
|
|
|
|
<tr><th>Input name</th><th>Type</th><th>Values</th></tr>
|
|
|
|
</thead>
|
|
|
|
<tbody class="inputs">
|
|
|
|
[% FOREACH input IN jobset.jobsetinputs %]
|
2013-03-19 15:14:47 +00:00
|
|
|
[% INCLUDE renderJobsetInput input=input baseName="input-$input.name" %]
|
2013-02-21 01:33:57 +00:00
|
|
|
[% END %]
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2009-04-02 16:15:57 +00:00
|
|
|
[% END %]
|
|
|
|
|
|
|
|
|
2013-02-21 01:33:57 +00:00
|
|
|
<ul class="nav nav-tabs">
|
2013-02-21 12:30:14 +00:00
|
|
|
<li class="active"><a href="#tabs-evaluations" data-toggle="tab">Evaluations</a></li>
|
2013-02-21 01:33:57 +00:00
|
|
|
[% IF jobset.errormsg %]
|
2013-08-28 09:59:02 +00:00
|
|
|
<li><a href="#tabs-errors" data-toggle="tab"><span class="text-warning">Evaluation errors</span></a></li>
|
2013-02-21 01:33:57 +00:00
|
|
|
[% END %]
|
2013-08-28 09:59:02 +00:00
|
|
|
<li><a href="#tabs-job-status" data-toggle="tab">Job status</a></li>
|
|
|
|
<li><a href="#tabs-jobs" data-toggle="tab">All jobs</a></li>
|
2013-06-24 23:00:59 +00:00
|
|
|
<li><a href="#tabs-configuration" data-toggle="tab">Configuration</a></li>
|
2013-02-21 01:33:57 +00:00
|
|
|
</ul>
|
2013-01-22 13:41:02 +00:00
|
|
|
|
2012-04-12 18:12:07 +00:00
|
|
|
<div id="generic-tabs" class="tab-content">
|
2013-01-22 13:41:02 +00:00
|
|
|
|
2013-02-21 12:30:14 +00:00
|
|
|
<div id="tabs-evaluations" class="tab-pane active">
|
|
|
|
|
2013-02-21 12:42:44 +00:00
|
|
|
<table class="info-table">
|
2013-02-21 12:30:14 +00:00
|
|
|
<tr>
|
|
|
|
<th>Last checked:</th>
|
|
|
|
<td>
|
|
|
|
[% IF jobset.lastcheckedtime %]
|
2013-02-26 15:10:36 +00:00
|
|
|
[% INCLUDE renderDateTime timestamp = jobset.lastcheckedtime %], [% IF jobset.errormsg %]<em class="text-warning">with errors!</em>[% ELSE %]<em>no errors</em>[% END %]
|
2013-02-22 10:37:35 +00:00
|
|
|
[% ELSE %]
|
|
|
|
<em>never</em>
|
|
|
|
[% END %]
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Last evaluation:</th>
|
|
|
|
<td>
|
|
|
|
[% IF latestEval %]
|
|
|
|
[% INCLUDE renderDateTime timestamp = latestEval.timestamp %]
|
2013-02-21 12:30:14 +00:00
|
|
|
[% ELSE %]
|
|
|
|
<em>never</em>
|
|
|
|
[% END %]
|
|
|
|
</td>
|
|
|
|
</tr>
|
2013-02-26 15:10:36 +00:00
|
|
|
[% IF jobset.triggertime %]
|
|
|
|
<tr>
|
|
|
|
<th>Evaluation pending since:</th>
|
|
|
|
<td>[% INCLUDE renderDateTime timestamp = jobset.triggertime %]</td>
|
|
|
|
</tr>
|
|
|
|
[% END %]
|
2013-02-21 12:30:14 +00:00
|
|
|
</table>
|
|
|
|
|
|
|
|
<br/>
|
2013-02-21 01:33:57 +00:00
|
|
|
|
|
|
|
[% IF evals.size() > 0 %]
|
|
|
|
[% INCLUDE renderEvals linkToAll=c.uri_for(c.controller('Jobset').action_for('evals'), [project.name, jobset.name]) %]
|
|
|
|
[% END %]
|
|
|
|
|
2013-02-21 12:30:14 +00:00
|
|
|
</div>
|
|
|
|
|
2013-02-21 01:33:57 +00:00
|
|
|
[% IF jobset.errormsg %]
|
|
|
|
<div id="tabs-errors" class="tab-pane">
|
2013-02-22 10:37:35 +00:00
|
|
|
<p>Errors occurred at [% INCLUDE renderDateTime timestamp=jobset.errortime %].</p>
|
|
|
|
<pre class="alert alert-error">[% HTML.escape(jobset.errormsg) %]</pre>
|
2013-02-21 01:33:57 +00:00
|
|
|
</div>
|
|
|
|
[% END %]
|
2010-02-05 14:48:22 +00:00
|
|
|
|
2013-06-24 23:00:59 +00:00
|
|
|
<div id="tabs-configuration" class="tab-pane">
|
2013-02-21 01:33:57 +00:00
|
|
|
|
2013-02-21 13:19:34 +00:00
|
|
|
<a class="btn pull-right" href="[% c.uri_for('/jobset' project.name jobset.name "edit") %]"><i class="icon-edit"></i> Edit</a>
|
|
|
|
|
2013-02-21 12:42:44 +00:00
|
|
|
<table class="info-table">
|
2013-02-21 01:33:57 +00:00
|
|
|
<tr>
|
|
|
|
<th>Description:</th>
|
|
|
|
<td>[% HTML.escape(jobset.description) %]</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Nix expression:</th>
|
|
|
|
<td>
|
|
|
|
<tt>[% HTML.escape(jobset.nixexprpath) %]</tt> in input
|
|
|
|
<tt>[% HTML.escape(jobset.nixexprinput) %]</tt>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Enabled:</th>
|
|
|
|
<td>[% jobset.enabled ? "Yes" : "No" %]</td>
|
|
|
|
</tr>
|
2013-05-02 15:51:38 +00:00
|
|
|
<tr>
|
|
|
|
<th>Check interval:</th>
|
|
|
|
<td>[% jobset.checkinterval || "<em>disabled</em>" %]</td>
|
|
|
|
</tr>
|
2013-02-21 01:33:57 +00:00
|
|
|
<tr>
|
|
|
|
<th>Enable email notification:</th>
|
|
|
|
<td>[% jobset.enableemail ? "Yes" : "No" %]</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>Email override:</th>
|
|
|
|
<td>[% HTML.escape(jobset.emailoverride) %]</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-08-16 14:21:30 +00:00
|
|
|
<th>Number of evaluations to keep:</th>
|
2013-02-21 01:33:57 +00:00
|
|
|
<td>[% jobset.keepnr %]</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2010-02-05 14:48:22 +00:00
|
|
|
|
2013-03-19 15:14:47 +00:00
|
|
|
[% INCLUDE renderJobsetInputs %]
|
2013-02-21 01:33:57 +00:00
|
|
|
</div>
|
2009-04-02 16:15:57 +00:00
|
|
|
|
2013-02-22 13:29:12 +00:00
|
|
|
[% INCLUDE makeLazyTab tabName="tabs-jobs" uri=c.uri_for('/jobset' project.name jobset.name "jobs-tab") %]
|
2009-04-02 16:15:57 +00:00
|
|
|
|
2013-08-28 09:59:02 +00:00
|
|
|
[% INCLUDE makeLazyTab tabName="tabs-job-status" uri=c.uri_for('/jobset' project.name jobset.name "job-status-tab") %]
|
|
|
|
|
2013-02-21 01:33:57 +00:00
|
|
|
</div>
|
2009-04-02 16:15:57 +00:00
|
|
|
|
|
|
|
[% END %]
|