Navigation

This commit is contained in:
2017-03-22 22:57:01 +01:00
parent 2e31528deb
commit 20cd9aeeaf
12 changed files with 73 additions and 30 deletions
+1
View File
@@ -38,5 +38,6 @@ html lang="#{I18n.locale}"
/ = console if Rails.env.development?
.container
= render 'shared/header'
= render 'shared/topnavigation'
= render 'shared/flashes'
= yield
+1 -1
View File
@@ -4,7 +4,7 @@ header
= image_tag('ch420_logo.png', class:'img-responsive pagelogo', alt: t('.logo'))
.col-md-8.col-xs-8
h1
= title t('.title_html')
= t('.title_html')
.col-xs-12.col-md-3
nav.pull-right
h2.sr-only =t('.lang')
+6
View File
@@ -0,0 +1,6 @@
= navbar do
= navbar_header
= navbar_collapse do
= navbar_group id: 'topnav' do
= navbar_item "Home", "/#{I18n.locale}"
= navbar_item t('.donation'), spenden_path
+2 -1
View File
@@ -1,6 +1,7 @@
- title(t('shared.header.title_html'))
.row
.col-xs-12.col-md-7
h2.sr-only =t('.form')
h2.sr-only = t('.form')
= simple_form_for @supporter do |f|
= f.input :first_name, placeholder: t('.placeholders.first_name')
= f.input :last_name, placeholder: t('.placeholders.last_name')