mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 08:46:41 +01:00
Use bh gem (bootstrap helpers), make use of it for navbar
This commit is contained in:
parent
5bbf385fdf
commit
5bbed9573c
2
Gemfile
2
Gemfile
@ -26,6 +26,8 @@ gem 'sdoc', '~> 0.4.0', group: :doc
|
||||
gem 'bootstrap-sass', '~> 3.3.1'
|
||||
gem 'autoprefixer-rails'
|
||||
|
||||
gem 'bh', '~> 1.2'
|
||||
|
||||
gem 'will_paginate', '~> 3.0.6'
|
||||
gem 'will_paginate-bootstrap'
|
||||
|
||||
|
||||
@ -30,6 +30,9 @@ GEM
|
||||
arel (5.0.1.20140414130214)
|
||||
autoprefixer-rails (4.0.2.1)
|
||||
execjs
|
||||
bh (1.2.0)
|
||||
actionpack
|
||||
activesupport
|
||||
bootstrap-sass (3.3.1.0)
|
||||
sass (~> 3.2)
|
||||
builder (3.2.2)
|
||||
@ -117,6 +120,7 @@ PLATFORMS
|
||||
|
||||
DEPENDENCIES
|
||||
autoprefixer-rails
|
||||
bh (~> 1.2)
|
||||
bootstrap-sass (~> 3.3.1)
|
||||
coffee-rails (~> 4.0.0)
|
||||
jbuilder (~> 2.0)
|
||||
|
||||
@ -7,9 +7,14 @@
|
||||
<%= csrf_meta_tags %>
|
||||
</head>
|
||||
<body>
|
||||
<%= nav_bar :brand => 'Projekt Euler', :brand_link => root_path do %>
|
||||
<%= menu_group do %>
|
||||
<%= menu_item 'Probleme', problems_path %>
|
||||
<%= navbar position: :static do %>
|
||||
<%= vertical do %>
|
||||
<%= link_to 'Projekt Euler', root_path %>
|
||||
<% end %>
|
||||
<%= horizontal do %>
|
||||
<%= nav class: 'navbar-left' do %>
|
||||
<%= link_to 'Probleme', problems_path %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<div class="container">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user