2010-01-07 14:25:12 +00:00
|
|
|
[% BLOCK makeLinkWrapped %]
|
|
|
|
<li [% IF curUri == uri %]class="active"[% END %]>
|
|
|
|
<a href="[% uri %]">[% title %]</a>
|
|
|
|
[% content %]
|
|
|
|
</li>
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
[% BLOCK makeLink -%]
|
|
|
|
[% INCLUDE makeLinkWrapped content="" -%]
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
[% BLOCK makeSubMenu %]
|
|
|
|
<ul class="short-menu" id="top-menu">
|
|
|
|
[% content %]
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
|
|
|
|
[% WRAPPER makeSubMenu title="Hydra" %]
|
|
|
|
[% INCLUDE makeLink
|
|
|
|
uri = c.uri_for(c.controller('Root').action_for('index'))
|
2010-01-08 12:30:09 +00:00
|
|
|
title = "Projects" %]
|
2010-01-07 14:25:12 +00:00
|
|
|
[% INCLUDE makeLink
|
|
|
|
uri = c.uri_for(c.controller('Root').action_for('queue'))
|
2010-02-12 10:19:24 +00:00
|
|
|
title = "Queue" %] ([% nrRunningBuilds %]/[% nrQueuedBuilds %])
|
2010-01-07 14:25:12 +00:00
|
|
|
[% INCLUDE makeLink
|
|
|
|
uri = c.uri_for(c.controller('Root').action_for('all'))
|
|
|
|
title = "All builds" %]
|
|
|
|
[% IF c.user_exists %]
|
2010-04-27 13:29:08 +00:00
|
|
|
[% IF c.check_user_roles('admin') %]
|
|
|
|
[% INCLUDE makeLink
|
2010-04-27 14:11:08 +00:00
|
|
|
uri = c.uri_for(c.controller('Admin').action_for('index'))
|
2010-04-27 13:29:08 +00:00
|
|
|
title = "Admin" %]
|
|
|
|
[% END %]
|
2010-01-07 14:25:12 +00:00
|
|
|
[% INCLUDE makeLink
|
|
|
|
uri = c.uri_for(c.controller('Root').action_for('logout'))
|
|
|
|
title = "Sign out" %]
|
|
|
|
[% ELSE %]
|
|
|
|
[% INCLUDE makeLink
|
|
|
|
uri = c.uri_for(c.controller('Root').action_for('login'))
|
|
|
|
title = "Sign in" %]
|
|
|
|
[% END %]
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
|