Skip to content

Commit

Permalink
navbar fixes
Browse files Browse the repository at this point in the history
- don't use a fluid container here since we're not using it right now
- add navbar-collapse to save space on mobile devices
  • Loading branch information
Dennis Schubert committed Dec 13, 2014
1 parent e8de454 commit baac21c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
//= require jquery_ujs
//= require turbolinks
//= require bootstrap/dropdown
//= require bootstrap/collapse
//= require_tree .
10 changes: 7 additions & 3 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="container">
<div class="navbar-header">
<%= link_to root_url(subdomain: false), class: 'navbar-brand' do %>
<%= image_tag 'logo.png', height: 30, alt: t('title'), title: t('title'), id: 'header-logo' %>
<% end %>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#mainmenu">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<ul class="nav navbar-nav navbar-right">
<!-- <li><%= link_to t('pages.about.menu_title'), about_url(subdomain: false) %></li> -->
<ul class="nav navbar-nav navbar-right collapse navbar-collapse" id="mainmenu">
<li><%= link_to t('pages.get_involved.menu_title'), get_involved_url(subdomain: false) %></li>
<li><%= link_to t('pages.blog.menu_title'), blog_index_url(subdomain: 'blog') %></li>
<li><%= link_to t('.wiki'), 'https://wiki.diasporafoundation.org' %></li>
Expand Down

0 comments on commit baac21c

Please sign in to comment.