2009-04-02 16:15:57 +00:00
|
|
|
[% WRAPPER layout.tt title="Overview" %]
|
|
|
|
[% PROCESS common.tt %]
|
|
|
|
|
2010-04-27 13:29:08 +00:00
|
|
|
[% IF newItems.size != 0 %]
|
|
|
|
<div class="newsbar">
|
|
|
|
[% FOREACH i IN newsItems %]
|
|
|
|
[% contents = String.new(i.contents) %]
|
|
|
|
<p><b>[% INCLUDE renderDateTime timestamp=i.createtime %]</b> <tt>by [% i.author.fullname %]</tt> <br/>[% contents.replace('\n','<br />\n') %]
|
|
|
|
[% END %]
|
|
|
|
</div>
|
|
|
|
[% END %]
|
|
|
|
|
2009-04-02 16:15:57 +00:00
|
|
|
<h2>Projects</h2>
|
|
|
|
|
|
|
|
<p>The following projects are hosted on this server:</p>
|
|
|
|
|
|
|
|
<table class="tablesorter">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Id</th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
[% FOREACH p IN projects %]
|
|
|
|
<tr class="clickable [% IF odd %] odd [% END; odd = !odd %]"
|
|
|
|
onclick="window.location = '[% c.uri_for('/project' p.name) %]'">
|
|
|
|
<td>[% INCLUDE renderProjectName project = p.name %]</td>
|
|
|
|
<td>[% HTML.escape(p.displayname) %]</td>
|
|
|
|
<td>[% WRAPPER maybeLink uri=p.homepage %][% HTML.escape(p.description) %][% END %]</td>
|
|
|
|
</tr>
|
|
|
|
[% END %]
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2010-01-07 14:25:12 +00:00
|
|
|
[% IF c.user_exists %]
|
|
|
|
<p>
|
|
|
|
[ [% INCLUDE maybeLink
|
|
|
|
uri = c.uri_for(c.controller('Project').action_for('create'))
|
|
|
|
content = "Create project" %] ]
|
|
|
|
</p>
|
|
|
|
[% END %]
|
|
|
|
|
2009-04-02 16:15:57 +00:00
|
|
|
[% END %]
|