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 %]
|
2012-04-12 18:12:07 +00:00
|
|
|
|
<div class="alert alert-info">
|
|
|
|
|
<a class="close" data-dismiss="alert">×</a>
|
2010-04-27 13:29:08 +00:00
|
|
|
|
[% FOREACH i IN newsItems %]
|
|
|
|
|
[% contents = String.new(i.contents) %]
|
2012-04-12 18:12:07 +00:00
|
|
|
|
<h4 class="alert-heading">[% INCLUDE renderDateTime timestamp=i.createtime %] by [% i.author.fullname %]</h4>
|
|
|
|
|
[% contents.replace('\n','<br />\n') %]
|
2010-04-27 13:29:08 +00:00
|
|
|
|
[% END %]
|
|
|
|
|
</div>
|
|
|
|
|
[% END %]
|
|
|
|
|
|
2009-04-02 16:15:57 +00:00
|
|
|
|
<h2>Projects</h2>
|
|
|
|
|
|
|
|
|
|
<p>The following projects are hosted on this server:</p>
|
|
|
|
|
|
2012-04-12 18:12:07 +00:00
|
|
|
|
<table class="tablesorter table table-condensed table-striped">
|
2009-04-02 16:15:57 +00:00
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Id</th>
|
|
|
|
|
<th>Name</th>
|
|
|
|
|
<th>Description</th>
|
2010-06-04 14:43:28 +00:00
|
|
|
|
[% IF c.check_user_roles('admin') %]<th>Options</th>[% END %]
|
2009-04-02 16:15:57 +00:00
|
|
|
|
</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>
|
2010-06-04 14:43:28 +00:00
|
|
|
|
[% IF c.check_user_roles('admin') %]
|
|
|
|
|
<td>
|
2012-04-12 19:03:59 +00:00
|
|
|
|
[% IF p.hidden %]
|
|
|
|
|
[% INCLUDE maybeButton uri = c.uri_for('/project' p.name 'unhide') content = "Unhide" %]
|
2010-06-04 14:43:28 +00:00
|
|
|
|
[% ELSE %]
|
2012-04-12 19:03:59 +00:00
|
|
|
|
[% INCLUDE maybeButton uri = c.uri_for('/project' p.name 'hide') content = "Hide" %]
|
2010-06-04 14:43:28 +00:00
|
|
|
|
[% END %]
|
|
|
|
|
</td>
|
|
|
|
|
[% END %]
|
2009-04-02 16:15:57 +00:00
|
|
|
|
</tr>
|
|
|
|
|
[% END %]
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
[% END %]
|