Jobset page: Show last evaluation time
This commit is contained in:
parent
c9ac7746b2
commit
d08a391b43
|
@ -51,6 +51,8 @@ sub jobsetIndex {
|
|||
|
||||
$c->stash->{evals} = getEvals($self, $c, scalar $c->stash->{jobset}->jobsetevals, 0, 10);
|
||||
|
||||
($c->stash->{latestEval}) = $c->stash->{jobset}->jobsetevals->search({}, { limit => 1, order_by => ["id desc"] });
|
||||
|
||||
$c->stash->{systems} =
|
||||
[ $c->stash->{jobset}->builds->search({ iscurrent => 1 }, { select => ["system"], distinct => 1, order_by => "system" }) ];
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ that don’t build.</p>
|
|||
<tr>
|
||||
<td>[% INCLUDE renderFullJobsetName project=j.project.name jobset=j.name %]</td>
|
||||
<td>
|
||||
<pre class="multiLineMsg error">[% HTML.escape(j.errormsg) %]</pre>
|
||||
<pre class="error">[% HTML.escape(j.errormsg) %]</pre>
|
||||
</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
|
@ -51,7 +51,7 @@ that don’t build.</p>
|
|||
<tr>
|
||||
<td>[% INCLUDE renderFullJobName project=j.project.name jobset=j.jobset.name job=j.name %]</td>
|
||||
<td>
|
||||
<pre class="multiLineMsg error">[% HTML.escape(j.errormsg) %]</pre>
|
||||
<pre class="error">[% HTML.escape(j.errormsg) %]</pre>
|
||||
</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
|
|
|
@ -59,7 +59,18 @@
|
|||
<th>Last checked:</th>
|
||||
<td>
|
||||
[% IF jobset.lastcheckedtime %]
|
||||
[% INCLUDE renderDateTime timestamp = jobset.lastcheckedtime %][% IF jobset.errormsg %]<em>, with evaluation errors!</em>[% ELSE %], <em>no evaluation errors</em>[% END %]
|
||||
[% INCLUDE renderDateTime timestamp = jobset.lastcheckedtime %][% IF jobset.errormsg %]<em>, with
|
||||
evaluation errors!</em>[% ELSE %], <em>no evaluation errors</em>[% END %]
|
||||
[% ELSE %]
|
||||
<em>never</em>
|
||||
[% END %]
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Last evaluation:</th>
|
||||
<td>
|
||||
[% IF latestEval %]
|
||||
[% INCLUDE renderDateTime timestamp = latestEval.timestamp %]
|
||||
[% ELSE %]
|
||||
<em>never</em>
|
||||
[% END %]
|
||||
|
@ -111,11 +122,8 @@
|
|||
|
||||
[% IF jobset.errormsg %]
|
||||
<div id="tabs-errors" class="tab-pane">
|
||||
<h2>Evaluation errors</h2>
|
||||
<p>
|
||||
Errors occurred at <tt>[% INCLUDE renderDateTime timestamp=jobset.errortime %]</tt>.
|
||||
</p>
|
||||
<pre class="multiLineMsg error">[% HTML.escape(jobset.errormsg) %]</pre>
|
||||
<p>Errors occurred at [% INCLUDE renderDateTime timestamp=jobset.errortime %].</p>
|
||||
<pre class="alert alert-error">[% HTML.escape(jobset.errormsg) %]</pre>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
|
|
Loading…
Reference in a new issue