82
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
1 |
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
2 |
<div class="container-fluid">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
3 |
<div class="navbar-header">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
4 |
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
5 |
<span class="sr-only">Toggle navigation</span>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
6 |
<span class="icon-bar"></span>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
7 |
<span class="icon-bar"></span>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
8 |
<span class="icon-bar"></span>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
9 |
</button>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
10 |
%= link_to url_for('index') => (class => 'navbar-brand') => begin
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
11 |
<span class="glyphicon glyphicon-home"></span>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
12 |
Crashs
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
13 |
% end
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
14 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
15 |
<div class="collapse navbar-collapse" id="navbar-collapse">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
16 |
<ul class="nav navbar-nav">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
17 |
%=t li => (class => current_route('groups') ? "active" : "") => begin
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
18 |
%= link_to 'Groups' => url_for('groups')
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
19 |
% end
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
20 |
%=t li => (class => current_route('reports') ? "active" : "") => begin
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
21 |
%= link_to 'Reports' => url_for('reports')
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
22 |
% end
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
23 |
</ul>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
24 |
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
25 |
% if(current_route('groups') || current_route('reports')) {
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
26 |
<form id="search-box" class="navbar-form navbar-right" method="get" action="<%= url_for("current") %>" role="search">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
27 |
<div class="input-group">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
28 |
<input name="search" type="text" style="width:400px;" class="form-control" placeholder="Search" value="<%= param("search") %>">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
29 |
<span class="input-group-btn">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
30 |
<button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-search"></span></button>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
31 |
</span>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
32 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
33 |
</form>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
34 |
% }
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
35 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
36 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
37 |
</nav>
|