2014-08-01 19:40:42 -04:00
|
|
|
<div class="navbar navbar-default navbar-fixed-top">
|
2015-03-24 19:27:30 -04:00
|
|
|
<div class="container-fluid">
|
2015-03-31 13:53:13 -04:00
|
|
|
<div class="navbar-header" data-navbar="static">
|
2015-03-24 19:27:30 -04:00
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-menu">
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
|
|
|
<div class="navbar-toggle collapsed navbar-livereload">
|
2015-06-21 14:33:32 -04:00
|
|
|
<%= erb :_poll_link %>
|
2014-08-07 15:20:41 -04:00
|
|
|
<% if Sidekiq::Web.app_url %>
|
2015-03-24 19:27:30 -04:00
|
|
|
<a class="btn btn-inverse" href="<%= Sidekiq::Web.app_url %>">Back to App</a>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<a class="navbar-brand" href="<%= root_path %>">
|
|
|
|
<%= Sidekiq::NAME %>
|
|
|
|
<%= erb :_status %>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbar-menu">
|
2015-03-31 13:53:13 -04:00
|
|
|
<ul class="nav navbar-nav" data-navbar="static">
|
2015-03-24 19:27:30 -04:00
|
|
|
<% Sidekiq::Web.default_tabs.each do |title, url| %>
|
|
|
|
<% if url == '' %>
|
|
|
|
<li class="<%= current_path == url ? 'active' : '' %>">
|
2015-09-08 17:09:48 -04:00
|
|
|
<a href="<%= root_path %><%= url %>"><%= t(title) %></a>
|
2015-03-24 19:27:30 -04:00
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<li class="<%= current_path.start_with?(url) ? 'active' : '' %>">
|
2015-09-08 17:09:48 -04:00
|
|
|
<a href="<%= root_path %><%= url %>"><%= t(title) %></a>
|
2015-03-24 19:27:30 -04:00
|
|
|
</li>
|
|
|
|
<% end %>
|
2014-08-07 15:20:41 -04:00
|
|
|
<% end %>
|
2015-03-31 13:53:13 -04:00
|
|
|
|
|
|
|
<li class="dropdown" data-navbar="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
|
|
|
|
<%= t('Plugins') %> <span class="caret"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
|
|
<% Sidekiq::Web.custom_tabs.each do |title, url| %>
|
|
|
|
<li>
|
2015-09-08 17:09:48 -04:00
|
|
|
<a href="<%= root_path %><%= url %>"><%= t(title) %></a>
|
2015-03-31 13:53:13 -04:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
2015-03-24 19:27:30 -04:00
|
|
|
<% Sidekiq::Web.custom_tabs.each do |title, url| %>
|
2015-03-31 13:53:13 -04:00
|
|
|
<li class="<%= current_path.start_with?(url) ? 'active' : '' %>" data-navbar="custom-tab">
|
2015-09-08 17:09:48 -04:00
|
|
|
<a href="<%= root_path %><%= url %>"><%= t(title) %></a>
|
2015-03-24 19:27:30 -04:00
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
2015-03-31 13:53:13 -04:00
|
|
|
<ul class="nav navbar-nav navbar-right navbar-livereload" data-navbar="static">
|
2015-03-24 19:27:30 -04:00
|
|
|
<li>
|
|
|
|
<div class="poll-wrapper pull-right">
|
2015-06-21 14:33:32 -04:00
|
|
|
<%= erb :_poll_link %>
|
2015-03-24 19:27:30 -04:00
|
|
|
<% if Sidekiq::Web.app_url %>
|
2016-05-01 12:08:16 -04:00
|
|
|
<a class="btn btn-inverse" href="<%= Sidekiq::Web.app_url %>"><%= t('BackToApp') %></a>
|
2015-03-24 19:27:30 -04:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2013-10-01 00:43:24 -04:00
|
|
|
</div>
|
2013-08-21 18:38:52 -04:00
|
|
|
</div>
|
|
|
|
</div>
|