hydra/src/root/view-result.tt

58 lines
1.4 KiB
Text
Raw Normal View History

[% releaseName = (result.releasename || "(No name)") %]
2009-10-20 12:26:39 +00:00
[% WRAPPER layout.tt title="View $releaseName" %]
[% PROCESS common.tt %]
[% PROCESS "product-list.tt" %]
[% USE HTML %]
<p><em>Finished building on [% INCLUDE renderDateTime timestamp = result.timestamp %].</em></p>
[% IF result.status == 1 %]
<p class="error">Note: One or more of the jobs in the view did not build correctly. See below for details.</p>
[% ELSIF result.status == 2 %]
<p class="error">Note: One or more of the jobs in the view have not been built (yet). See below for details.</p>
[% END %]
[% FOREACH j IN result.jobs %]
<h2>
[% IF j.build %]<a href="[% c.uri_for('/build' j.build.id) %]">[% END %]
[% INCLUDE renderViewJobName job=j.job %]
[% IF j.build %]</a>[% END %]
</h2>
[% IF j.build %]
[% IF j.build.buildstatus == 0 %]
2009-10-20 12:26:39 +00:00
2010-03-05 18:49:27 +00:00
[% IF j.build.buildproducts %]
[% p = jobNames.${j.job.job} > 1 ? "-${j.build.system}" : "";
INCLUDE renderProductList build=j.build latestRoot=['/view' project.name view.name 'latest' "${j.job.job}${p}"]
%]
2010-03-05 18:49:27 +00:00
[% ELSE %]
2010-03-05 18:36:49 +00:00
<p><em>Succeeded.</em></p>
[% END %]
2009-10-20 12:26:39 +00:00
[% ELSE %]
<p class="error">Build failed</p>
2013-01-22 13:41:02 +00:00
2009-10-20 12:26:39 +00:00
[% END %]
[% ELSE %]
<p class="error">Build not (yet) performed.</p>
[% END %]
<br />
2009-10-20 12:26:39 +00:00
[% END %]
[% IF c.user_exists %]
<p>
<a class="btn" href="[% c.uri_for('/view' project.name view.name result.id 'release') %]">Release</a>
</p>
[% END %]
2009-10-20 12:26:39 +00:00
[% END %]