forked from lix-project/hydra
42 lines
959 B
Plaintext
42 lines
959 B
Plaintext
[% WRAPPER layout.tt title="Releases for Project ‘$project.name’" %]
|
||
[% PROCESS common.tt %]
|
||
[% USE HTML %]
|
||
|
||
<h1>Releases for Project <tt>[% project.name %]</tt></h1>
|
||
|
||
[% IF releases.size == 0 %]
|
||
|
||
<p><em>This project has no releases yet.</em></p>
|
||
|
||
[% ELSE %]
|
||
|
||
<p>This project has made the following releases:</p>
|
||
|
||
<table class="tablesorter">
|
||
<thead>
|
||
<tr>
|
||
<th>Name</th>
|
||
<th>Date</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
[% FOREACH release IN releases %]
|
||
[% link = c.uri_for('/release' project.name release.name) %]
|
||
<tr class="clickable" onclick="window.location = '[% link %]'">
|
||
<td><a href="[% link %]"><tt>[% release.name %]</tt></a></td>
|
||
<td>[% INCLUDE renderDateTime timestamp = release.timestamp %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
|
||
[% END %]
|
||
|
||
[% IF c.user_exists %]
|
||
<p>
|
||
[<a href="[% c.uri_for('/project' project.name 'create-release') %]">Create a release</a>]
|
||
</p>
|
||
[% END %]
|
||
|
||
[% END %]
|