forked from sidekiq/sidekiq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change current navbar to bootstrap collapsed navbar [skip ci]
- Loading branch information
1 parent
3291c97
commit c080091
Showing
2 changed files
with
76 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,53 @@ | ||
<div class="navbar navbar-default navbar-fixed-top"> | ||
<div class="navbar-inner"> | ||
<div class="container-fluid text-center"> | ||
<a class="navbar-brand" href="<%= root_path %>"> | ||
<%= Sidekiq::NAME %> | ||
<%= erb :_status %> | ||
</a> | ||
<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 %> | ||
<% end %> | ||
<% 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> | ||
</div> | ||
<div class="poll-wrapper pull-right"> | ||
<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"> | ||
<%= erb :_poll %> | ||
<% if Sidekiq::Web.app_url %> | ||
<a class="btn btn-inverse" href="<%= Sidekiq::Web.app_url %>">Back to App</a> | ||
<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 %> | ||
<% end %> | ||
<% 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> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |