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">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<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">
|
2014-08-06 12:46:57 -04:00
|
|
|
<%= erb :_poll %>
|
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">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<% Sidekiq::Web.default_tabs.each do |title, url| %>
|
|
|
|
<% if url == '' %>
|
|
|
|
<li class="<%= current_path == url ? 'active' : '' %>">
|
|
|
|
<a href="<%= root_path %><%= url %>"><%= t(title) %></a>
|
|
|
|
</li>
|
|
|
|
<% else %>
|
|
|
|
<li class="<%= current_path.start_with?(url) ? 'active' : '' %>">
|
|
|
|
<a href="<%= root_path %><%= url %>"><%= t(title) %></a>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
2014-08-07 15:20:41 -04:00
|
|
|
<% end %>
|
2015-03-24 19:27:30 -04:00
|
|
|
<% Sidekiq::Web.custom_tabs.each do |title, url| %>
|
|
|
|
<li class="<%= current_path.start_with?(url) ? 'active' : '' %>">
|
|
|
|
<a href="<%= root_path %><%= url %>"><%= t(title) %></a>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right navbar-livereload">
|
|
|
|
<li>
|
|
|
|
<div class="poll-wrapper pull-right">
|
|
|
|
<%= erb :_poll %>
|
|
|
|
<% if Sidekiq::Web.app_url %>
|
|
|
|
<a class="btn btn-inverse" href="<%= Sidekiq::Web.app_url %>">Back to App</a>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2013-10-01 00:43:24 -04:00
|
|
|
</div>
|
2013-08-21 18:38:52 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-24 19:27:30 -04:00
|
|
|
</div>
|