2009-03-13 15:41:19 +00:00
|
|
|
|
[% WRAPPER layout.tt title=(edit ? (create ? "New Project" : "Editing Project ‘$project.name’") : "Project ‘$project.name’") %]
|
2008-11-17 23:59:20 +00:00
|
|
|
|
[% PROCESS common.tt %]
|
2008-11-13 17:55:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[% IF edit %]
|
2009-03-13 15:41:19 +00:00
|
|
|
|
<form action="[% IF create %][% c.uri_for('/create-project/submit') %][% ELSE %][% c.uri_for('/project' project.name 'submit') %][% END %]" method="post">
|
2008-11-13 17:55:40 +00:00
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[% IF create %]
|
|
|
|
|
<h1>New Project</h1>
|
|
|
|
|
[% ELSE %]
|
2009-03-13 15:41:19 +00:00
|
|
|
|
<h1>Project <tt>[% project.name %]</tt></h1>
|
2008-11-13 17:55:40 +00:00
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
|
|
|
2009-04-02 16:15:57 +00:00
|
|
|
|
<h2>Information[% IF !edit %] <a class="smallLink" href="[% c.uri_for('/project' project.name 'edit') %]">[Edit]</a>[% END %]</h2>
|
2008-11-13 17:55:40 +00:00
|
|
|
|
|
2008-11-26 19:48:04 +00:00
|
|
|
|
<table class="layoutTable">
|
2008-11-13 17:55:40 +00:00
|
|
|
|
[% IF edit %]
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Identifier:</th>
|
2009-03-13 15:41:19 +00:00
|
|
|
|
<td><tt>[% INCLUDE maybeEditString param="name" value=project.name %]</tt></td>
|
2008-11-13 17:55:40 +00:00
|
|
|
|
</tr>
|
|
|
|
|
[% END %]
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Display name:</th>
|
2009-03-13 15:41:19 +00:00
|
|
|
|
<td>[% INCLUDE maybeEditString param="displayname" value=project.displayname %]</td>
|
2008-11-13 17:55:40 +00:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Description:</th>
|
2009-03-13 15:41:19 +00:00
|
|
|
|
<td>[% INCLUDE maybeEditString param="description" value=project.description %]</td>
|
2008-11-13 17:55:40 +00:00
|
|
|
|
</tr>
|
2009-02-11 23:14:28 +00:00
|
|
|
|
<tr>
|
|
|
|
|
<th>Homepage:</th>
|
|
|
|
|
<td>
|
|
|
|
|
[% IF edit %]
|
2009-03-13 15:41:19 +00:00
|
|
|
|
[% INCLUDE maybeEditString param="homepage" value=project.homepage %]
|
2009-02-11 23:14:28 +00:00
|
|
|
|
[% ELSE %]
|
2009-03-13 15:41:19 +00:00
|
|
|
|
[% IF project.homepage %]
|
|
|
|
|
<a [% HTML.attributes(href => project.homepage) %]>[% HTML.escape(project.homepage) %]</a>
|
2009-02-11 23:14:28 +00:00
|
|
|
|
[% ELSE %]
|
|
|
|
|
<em>(not specified)</em>
|
|
|
|
|
[% END %]
|
|
|
|
|
[% END %]
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2008-11-26 23:25:24 +00:00
|
|
|
|
<tr>
|
|
|
|
|
<th>Owner:</th>
|
2009-03-24 14:22:59 +00:00
|
|
|
|
<td><tt>[% INCLUDE maybeEditString param="owner" value=(project.owner.username || c.user.username) edit=(edit && c.check_user_roles('admin')) %]</tt></td>
|
2008-11-26 23:25:24 +00:00
|
|
|
|
</tr>
|
2008-11-17 23:59:20 +00:00
|
|
|
|
<tr>
|
|
|
|
|
<th>Enabled:</th>
|
|
|
|
|
<td>
|
2009-03-13 15:41:19 +00:00
|
|
|
|
[% INCLUDE renderSelection param="enabled" curValue=project.enabled options={"1" = "Yes", "0" = "No"} %]
|
2008-11-17 23:59:20 +00:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2008-11-13 17:55:40 +00:00
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
2009-04-02 16:15:57 +00:00
|
|
|
|
|
2008-11-27 00:38:09 +00:00
|
|
|
|
[% IF !edit %]
|
|
|
|
|
|
|
|
|
|
|
2009-04-02 16:15:57 +00:00
|
|
|
|
<h2>Jobsets</h2>
|
|
|
|
|
|
|
|
|
|
[% IF project.jobsets.size > 0 %]
|
|
|
|
|
|
|
|
|
|
<p>This project has the following jobsets:</p>
|
|
|
|
|
|
|
|
|
|
<table class="tablesorter">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Id</th>
|
|
|
|
|
<th>Description</th>
|
|
|
|
|
<th>Last evaluated</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
[% FOREACH j IN project.jobsets %]
|
|
|
|
|
<tr class="clickable [% IF odd %] odd [% END; odd = !odd %]"
|
|
|
|
|
onclick="window.location = '[% c.uri_for('/jobset' project.name j.name) %]'">
|
|
|
|
|
<td>[% INCLUDE renderJobsetName project = project.name jobset = j.name %]</td>
|
|
|
|
|
<td>[% HTML.escape(j.description) %]</td>
|
|
|
|
|
<td>[% INCLUDE renderDateTime timestamp = j.lastcheckedtime %]</td>
|
|
|
|
|
</tr>
|
|
|
|
|
[% END %]
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[% ELSE %]
|
|
|
|
|
|
|
|
|
|
<p>No jobsets have been defined yet.</p>
|
2008-11-27 00:38:09 +00:00
|
|
|
|
|
|
|
|
|
[% END %]
|
|
|
|
|
|
2009-04-02 16:15:57 +00:00
|
|
|
|
<a href="[% c.uri_for(c.controller('Project').action_for('create_jobset'), [project.name]) %]">[Create a new jobset]</a>
|
2008-11-27 00:38:09 +00:00
|
|
|
|
|
2008-11-13 17:55:40 +00:00
|
|
|
|
|
|
|
|
|
|
2009-10-15 21:35:19 +00:00
|
|
|
|
<h2>Views</h2>
|
2008-11-13 17:55:40 +00:00
|
|
|
|
|
2009-10-15 21:35:19 +00:00
|
|
|
|
[% IF views.size > 0 %]
|
2008-11-17 13:36:58 +00:00
|
|
|
|
|
2009-10-15 21:35:19 +00:00
|
|
|
|
<p>Project <tt>[% project.name %]</tt> has the following views:</p>
|
2008-11-18 12:48:58 +00:00
|
|
|
|
|
2009-04-02 16:15:57 +00:00
|
|
|
|
<ul>
|
2009-10-15 21:35:19 +00:00
|
|
|
|
[% FOREACH view IN views %]
|
2009-04-02 16:15:57 +00:00
|
|
|
|
<li>
|
2009-10-15 21:35:19 +00:00
|
|
|
|
<a href="[% c.uri_for('/view' project.name view.name) %]"><tt>[% view.name %]</tt></a>
|
|
|
|
|
[<a href="[% c.uri_for('/view' project.name view.name "edit") %]">Edit</a>]
|
2009-04-02 16:15:57 +00:00
|
|
|
|
</li>
|
2008-11-13 17:55:40 +00:00
|
|
|
|
[% END %]
|
2009-04-02 16:15:57 +00:00
|
|
|
|
</ul>
|
2008-11-10 13:33:12 +00:00
|
|
|
|
|
2008-11-13 09:48:10 +00:00
|
|
|
|
[% ELSE %]
|
|
|
|
|
|
2009-10-15 21:35:19 +00:00
|
|
|
|
<p>Project <tt>[% project.name %]</tt> has no views.</p>
|
2008-11-13 09:48:10 +00:00
|
|
|
|
|
|
|
|
|
[% END %]
|
|
|
|
|
|
2009-10-15 21:35:19 +00:00
|
|
|
|
<p><a href="[% c.uri_for('/project' project.name 'create-view') %]">[Create a new view]</a></p>
|
2008-11-10 13:33:12 +00:00
|
|
|
|
|
2008-11-13 14:54:50 +00:00
|
|
|
|
|
2009-04-02 16:15:57 +00:00
|
|
|
|
<h2>Channels</h2>
|
|
|
|
|
|
|
|
|
|
<p>This project provides the following Nix channels:</p>
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="[% c.uri_for('/project' project.name 'channel' 'latest') %]"><tt>latest</tt></a> —
|
|
|
|
|
contains the latest successful build of every job in this project.
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="[% c.uri_for('/project' project.name 'channel' 'all') %]"><tt>all</tt></a> —
|
|
|
|
|
contains every successful, non-garbage-collected build of every
|
|
|
|
|
job in this project.
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2>Statistics</h2>
|
|
|
|
|
|
|
|
|
|
[% INCLUDE showBuildStats %]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[% IF edit %]
|
2008-11-13 14:54:50 +00:00
|
|
|
|
|
2008-11-17 23:59:20 +00:00
|
|
|
|
<p><button type="submit"><img src="/static/images/success.gif" />[%IF create %]Create[% ELSE %]Apply changes[% END %]</button></p>
|
2008-11-13 14:54:50 +00:00
|
|
|
|
|
|
|
|
|
</form>
|
2008-11-13 17:55:40 +00:00
|
|
|
|
|
|
|
|
|
[% IF !create %]
|
|
|
|
|
|
2009-03-13 15:41:19 +00:00
|
|
|
|
<form action="[% c.uri_for('/project' project.name 'delete') %]" method="post">
|
2008-11-17 23:59:20 +00:00
|
|
|
|
<p><button id="delete-project" type="submit"><img src="/static/images/failure.gif" />Delete this project</button></p>
|
2008-11-13 17:55:40 +00:00
|
|
|
|
</form>
|
2008-11-13 14:54:50 +00:00
|
|
|
|
|
2009-03-04 15:25:35 +00:00
|
|
|
|
<script type="text/javascript">
|
2008-11-13 17:55:40 +00:00
|
|
|
|
$("#delete-project").click(function() {
|
|
|
|
|
return confirm("Are you sure you want to delete this project?");
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
[% END %]
|
|
|
|
|
|
2008-11-13 14:54:50 +00:00
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
|
|
|
2008-11-10 13:33:12 +00:00
|
|
|
|
[% END %]
|