hydra/src/root/release.tt

46 lines
1.2 KiB
Text
Raw Normal View History

2008-11-27 18:27:19 +00:00
[% releaseName = (release.releasename || "(No name)") -%]
[% WRAPPER layout.tt title="Release $releaseName" %]
[% PROCESS common.tt %]
[% PROCESS "product-list.tt" %]
[% USE HTML %]
<h1>Release <tt>[% releaseName %]</tt></h1>
2009-03-18 18:50:42 +00:00
<p><em>Released on [% INCLUDE renderDateTime timestamp = release.timestamp %].</em></p>
2008-11-27 18:27:19 +00:00
[% IF release.status == 1 %]
<p class="error">This is a failed release. One of its jobs has failed. See below for details.</p>
[% ELSIF release.status == 2 %]
<p class="error">This is an incomplete release. One of its jobs has not been built (yet). See below for details.</p>
[% END %]
[% FOREACH j IN release.jobs %]
2008-11-27 18:27:19 +00:00
<h2>
[% IF j.build %]<a href="[% c.uri_for('/build' j.build.id) %]">[% END %]
[% INCLUDE renderReleaseJobName job=j.job %]
[% IF j.build %]</a>[% END %]
2008-11-27 18:27:19 +00:00
</h2>
[% IF j.build %]
2008-11-27 18:27:19 +00:00
[% IF j.build.resultInfo.buildstatus == 0 %]
2008-11-27 18:27:19 +00:00
[% INCLUDE renderProductList build=j.build latestRoot=['/release' project.name releaseSet.name 'latest' j.job.job] %]
2008-11-27 18:27:19 +00:00
[% ELSE %]
<p class="error">Build failed</p>
[% END %]
[% ELSE %]
<p class="error">Build not (yet) performed.</p>
[% END %]
[% END %]
[% END %]