Skip to content

Commit

Permalink
Merge pull request #68 from mobirobo/navbar_bootstrap3
Browse files Browse the repository at this point in the history
Navigation bar working with both Bootstrap 2 and Bootstrap 3
  • Loading branch information
mcfiredrill committed Aug 22, 2014
2 parents a103991 + 3f6789b commit 962b5b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ body {
border-bottom: 5px solid #ce1212;
}

.navbar .brand {
.navbar .brand, .navbar .navbar-brand {
color: white;
}

Expand Down
8 changes: 4 additions & 4 deletions app/views/layouts/resque_web/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<a class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<%= image_tag "resque_web/lifebuoy.png", class: 'logo' %>
<%= link_to "Resque.", ResqueWeb::Engine.app.url_helpers.root_path, :class => "brand" %>
<div class="nav-collapse collapse">
<ul class="nav">
<%= link_to "Resque", ResqueWeb::Engine.app.url_helpers.root_path, :class => "brand navbar-brand" %>
<div class="nav-collapse navbar-collapse collapse">
<ul class="nav navbar-nav">
<% tabs.each do |tab_name,path| %>
<%= tab tab_name,path %>
<% end %>
Expand Down

0 comments on commit 962b5b0

Please sign in to comment.