1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/web/views/_nav.erb

31 lines
984 B
Text
Raw Normal View History

2013-08-21 18:38:52 -04:00
<div class="navbar-inner">
<div class="container">
2013-10-01 00:43:24 -04:00
<a class="navbar-brand" href="<%= root_path %>">
2013-09-22 18:37:00 -04:00
<%= Sidekiq::NAME %>
<%= erb :_status %>
</a>
2013-10-01 00:43:24 -04:00
<ul class="nav navbar-nav">
<% Sidekiq::Web.default_tabs.each do |title, url| %>
2013-08-21 18:38:52 -04:00
<% 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 %>
<% Sidekiq::Web.custom_tabs.each do |title, url| %>
2013-08-21 18:38:52 -04:00
<li class="<%= current_path.start_with?(url) ? 'active' : '' %>">
<a href="<%= root_path %><%= url %>"><%= t(title) %></a>
</li>
<% end %>
</ul>
<div class="poll-wrapper pull-right">
2013-10-01 00:43:24 -04:00
<%= erb :_poll %>
</div>
2013-08-21 18:38:52 -04:00
</div>
</div>