Add a search feature

This allows searching for projects, jobsets or jobs by name or
description.
This commit is contained in:
Eelco Dolstra
2013-02-22 15:45:10 +01:00
parent 4343781181
commit 07daff32b8
4 changed files with 113 additions and 9 deletions

View File

@ -24,7 +24,7 @@
[% INCLUDE makeLinkWrapped content="" %]
[% END %]
<ul class="nav" id="top-menu">
<ul class="nav pull-left" id="top-menu">
[% WRAPPER makeSubMenu title="Status" %]
[% INCLUDE makeLink
@ -184,10 +184,22 @@
[% END %]
[% END %]
[% IF c.user_exists %]
[% 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 %]
</ul>
<div class="pull-right">
<form class="navbar-search" action="[% c.uri_for('/search') %]">
<input name="query" type="text" class="search-query span2" placeholder="Search"></input>
</form>
<ul class="nav" id="top-menu">
[% IF c.user_exists %]
[% 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 %]
</ul>
</div>