mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
33 lines
962 B
Text
33 lines
962 B
Text
<div class="navbar-inner">
|
|
<div class="container">
|
|
<a class="navbar-brand" href="<%= root_path %>">
|
|
<%= Sidekiq::NAME %>
|
|
<%= erb :_status %>
|
|
</a>
|
|
<ul class="nav navbar-nav">
|
|
<% 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 %>
|
|
<% end %>
|
|
<% 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>
|
|
|
|
<div class="col-sm-2 pull-right poll-wrapper">
|
|
<%= erb :_poll %>
|
|
</div>
|
|
</div>
|
|
</div>
|