* In the job status and error pages, show when the status of a job

last changed.
This commit is contained in:
Eelco Dolstra
2009-07-09 14:48:15 +00:00
parent bbf718e64d
commit 1aec78014d
7 changed files with 53 additions and 12 deletions

View File

@ -73,6 +73,9 @@
<th>Release Name</th>
<th>System</th>
<th>Timestamp</th>
[% IF showStatusChange %]
<th class="headerSortUp">Last status change</th>
[% END %]
<th>Description</th>
</tr>
</thead>
@ -105,6 +108,17 @@
<td>[% !showSchedulingInfo and build.get_column('releasename') ? build.get_column('releasename') : build.nixname %]</td>
<td><tt>[% build.system %]</tt></td>
<td>[% date.format(build.timestamp, '%Y-%m-%d %H:%M:%S') %]</td>
[% IF showStatusChange %]
<td>
[% IF build.get_column('statusChangeTime') %]
<a href="[% c.uri_for('/build' build.get_column('statusChangeId')) %]">
[% date.format(build.get_column('statusChangeTime'), '%Y-%m-%d %H:%M:%S') %]
</a>
[% ELSE %]
<em>never</em>
[% END %]
</td>
[% END %]
<td>[% build.description %]</td>
</tr>
[% END -%]

View File

@ -67,7 +67,7 @@ that dont build.</p>
<h2>Broken builds</h2>
[% INCLUDE renderBuildList builds=brokenBuilds %]
[% INCLUDE renderBuildList builds=brokenBuilds showStatusChange=1 %]
[% END %]

View File

@ -3,8 +3,11 @@
<h1>Job Status[% IF project %] of Project <tt>[% project.name %]</tt>[% END %]</h1>
<p>Below are the latest builds for each job.</p>
<p>Below are the latest builds for each job. It is ordered by the status
change time (the timestamp of the last build that had a different
build result status). That is, it shows the jobs that most recently
changed from failed to successful or vice versa first.</p>
[% INCLUDE renderBuildList builds=latestBuilds %]
[% INCLUDE renderBuildList builds=latestBuilds showStatusChange=1 %]
[% END %]