1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-27 10:38:50 +01:00

Use bh gem (bootstrap helpers), make use of it for navbar

This commit is contained in:
2014-12-10 17:14:03 +01:00
parent 5bbf385fdf
commit 5bbed9573c
3 changed files with 14 additions and 3 deletions

View File

@@ -26,6 +26,8 @@ gem 'sdoc', '~> 0.4.0', group: :doc
gem 'bootstrap-sass', '~> 3.3.1' gem 'bootstrap-sass', '~> 3.3.1'
gem 'autoprefixer-rails' gem 'autoprefixer-rails'
gem 'bh', '~> 1.2'
gem 'will_paginate', '~> 3.0.6' gem 'will_paginate', '~> 3.0.6'
gem 'will_paginate-bootstrap' gem 'will_paginate-bootstrap'

View File

@@ -30,6 +30,9 @@ GEM
arel (5.0.1.20140414130214) arel (5.0.1.20140414130214)
autoprefixer-rails (4.0.2.1) autoprefixer-rails (4.0.2.1)
execjs execjs
bh (1.2.0)
actionpack
activesupport
bootstrap-sass (3.3.1.0) bootstrap-sass (3.3.1.0)
sass (~> 3.2) sass (~> 3.2)
builder (3.2.2) builder (3.2.2)
@@ -117,6 +120,7 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
autoprefixer-rails autoprefixer-rails
bh (~> 1.2)
bootstrap-sass (~> 3.3.1) bootstrap-sass (~> 3.3.1)
coffee-rails (~> 4.0.0) coffee-rails (~> 4.0.0)
jbuilder (~> 2.0) jbuilder (~> 2.0)

View File

@@ -7,9 +7,14 @@
<%= csrf_meta_tags %> <%= csrf_meta_tags %>
</head> </head>
<body> <body>
<%= nav_bar :brand => 'Projekt Euler', :brand_link => root_path do %> <%= navbar position: :static do %>
<%= menu_group do %> <%= vertical do %>
<%= menu_item 'Probleme', problems_path %> <%= link_to 'Projekt Euler', root_path %>
<% end %>
<%= horizontal do %>
<%= nav class: 'navbar-left' do %>
<%= link_to 'Probleme', problems_path %>
<% end %>
<% end %> <% end %>
<% end %> <% end %>
<div class="container"> <div class="container">