* Show global and per-project statistics.

This commit is contained in:
Eelco Dolstra
2008-11-26 23:49:51 +00:00
parent 043127c3d4
commit 38a1b0d7ef
4 changed files with 65 additions and 46 deletions

View File

@ -61,4 +61,36 @@
[% END -%]
</tbody>
</table>
[% END %]
[% BLOCK showBuildStats %]
<table class="layoutTable">
<tr>
<th>Finished builds:</th>
<td>[% finishedBuilds %]</td>
</tr>
<tr>
<th><img src="/static/images/success.gif" /> Succeeded builds:</th>
<td>[% succeededBuilds %]</td>
</tr>
<tr>
<th><img src="/static/images/failure.gif" /> Failed builds:</th>
<td>[% finishedBuilds - succeededBuilds %]</td>
</tr>
<tr>
<th>Total build time:</th>
<td>[% totalBuildTime %]s</td>
</tr>
<tr>
<th>Scheduled builds:</th>
<td>[% scheduledBuilds %]</td>
</tr>
<tr>
<th>Currently executing builds:</th>
<td>[% busyBuilds %]</td>
</tr>
</table>
[% END %]

View File

@ -5,6 +5,11 @@
<h1>Hydra Overview</h1>
<h2>Statistics</h2>
[% PROCESS showBuildStats %]
<h2>Job status</h2>
<p>Below are the latest builds for each job.</p>

View File

@ -245,7 +245,7 @@
<h2>Jobs</h2>
[% IF jobName && jobNames.size > 0 %]
[% IF jobNames && jobNames.size > 0 %]
<ul>
[% FOREACH jobName IN jobNames -%]
@ -262,32 +262,7 @@
<h2>Statistics</h2>
<table class="layoutTable">
<tr>
<th>Finished builds:</th>
<td>[% finishedBuilds %]</td>
</tr>
<tr>
<th><img src="/static/images/success.gif" /> Succeeded builds:</th>
<td>[% succeededBuilds %]</td>
</tr>
<tr>
<th><img src="/static/images/failure.gif" /> Failed builds:</th>
<td>[% finishedBuilds - succeededBuilds %]</td>
</tr>
<tr>
<th>Total build time:</th>
<td>[% totalBuildTime %]s</td>
</tr>
<tr>
<th>Scheduled builds:</th>
<td>[% scheduledBuilds %]</td>
</tr>
<tr>
<th>Currently executing builds:</th>
<td>[% busyBuilds %]</td>
</tr>
</table>
[% PROCESS showBuildStats %]
[% END %]