hydra/src/HydraFrontend/root/project.tt

112 lines
2.2 KiB
Plaintext
Raw Normal View History

2008-11-10 13:33:12 +00:00
[% WRAPPER layout.tt title="Hydra Overview" %]
2008-11-13 00:01:19 +00:00
<h1>Project <tt>[% curProject.name %]</tt></h1>
2008-11-10 13:33:12 +00:00
2008-11-13 09:48:10 +00:00
<p><strong>Description:</strong> [% curProject.description %]</p>
2008-11-10 13:33:12 +00:00
<h2>Definition</h2>
2008-11-13 09:48:10 +00:00
[% IF curProject.jobsets.size > 0 %]
2008-11-13 00:01:19 +00:00
[% FOREACH jobset IN curProject.jobsets -%]
2008-11-10 13:33:12 +00:00
<h3>Jobset <tt>[% jobset.name %]</tt></h3>
2008-11-12 11:09:21 +00:00
<h4>Information</h4>
<table>
<tr>
<th>Description:</th>
<td>[% jobset.description %]</td>
</tr>
<tr>
<th>Nix expression:</th>
<td><tt>[% jobset.nixexprpath %]</tt> in input <tt>[% jobset.nixexprinput %]</tt></td>
</tr>
</table>
<h4>Inputs</h4>
2008-11-10 13:33:12 +00:00
<table class="tablesorter">
<thead>
<tr><th>Input name</th><th>Type</th><th>Values</th></tr>
</thead>
<tbody>
[% FOREACH input IN jobset.jobsetinputs -%]
<tr>
<td><tt>[% input.name %]</tt></td>
<td><tt>[% input.type %]</tt></td>
<td>
[% FOREACH alt IN input.jobsetinputalts -%]
[% IF input.type == "string" %]
<tt>"[% alt.value %]"</tt>
[% ELSE %]
<tt>[% alt.uri %]</tt>
[% END %]
[% END %]
</td>
</tr>
[% END %]
</tbody>
</table>
[% END -%]
2008-11-13 09:48:10 +00:00
[% ELSE %]
<p>No jobsets have been defined yet.</p>
[% END %]
2008-11-10 13:33:12 +00:00
<h2>Jobs</h2>
2008-11-13 09:48:10 +00:00
[% IF jobNames.size > 0 %]
2008-11-10 13:33:12 +00:00
<ul>
[% FOREACH jobName IN jobNames -%]
2008-11-13 00:01:19 +00:00
<li><a href="[% c.uri_for('/job' curProject.name jobName.attrname) %]"><tt>[% jobName.attrname %]</tt></a></li>
2008-11-10 13:33:12 +00:00
[% END %]
</ul>
2008-11-13 09:48:10 +00:00
[% ELSE %]
<p>No builds have been performed or scheduled.</p>
[% END %]
2008-11-10 13:33:12 +00:00
2008-11-12 11:09:21 +00:00
<h2>Statistics</h2>
<table>
<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>
2008-11-10 13:33:12 +00:00
[% END %]