Added header

This commit is contained in:
2017-03-12 10:21:17 +01:00
parent 9df54eeade
commit 2e31528deb
6 changed files with 33 additions and 22 deletions
+2
View File
@@ -4,6 +4,8 @@ AllCops:
- config.ru
Exclude:
- bin/**
- config/**/*
- spec/**/*
- spec/dummy/config/initializers/secret_token.rb
Documentation:
Enabled: false
+4 -1
View File
@@ -23,7 +23,10 @@ $font-size-h3: $font-size-base
@import "typeaheadjs"
body
padding-top: 20px
.container
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)
padding-top: 20px
.lead
font-weight: normal
+1
View File
@@ -37,5 +37,6 @@ html lang="#{I18n.locale}"
/ = console if Rails.env.development?
.container
= render 'shared/header'
= render 'shared/flashes'
= yield
+20
View File
@@ -0,0 +1,20 @@
header
.row
.col-md-1.col-xs-4
= image_tag('ch420_logo.png', class:'img-responsive pagelogo', alt: t('.logo'))
.col-md-8.col-xs-8
h1
= title t('.title_html')
.col-xs-12.col-md-3
nav.pull-right
h2.sr-only =t('.lang')
a href='/' lang='de'
| Deutsch
|   |  
a href='/it' lang='it'
| Italiano
|   |  
a href='/fr' lang='fr'
| Français
br/
= render 'shared/counter'
-19
View File
@@ -1,22 +1,3 @@
.row
.col-md-1.col-xs-4
= image_tag('ch420_logo.png', class:'img-responsive pagelogo', alt: t('.logo'))
.col-md-8.col-xs-8
h1
= title t('.title_html')
.col-xs-12.col-md-3
nav.pull-right
h2.sr-only =t('.lang')
a href='/' lang='de'
| Deutsch
|   |  
a href='/it' lang='it'
| Italiano
|   |  
a href='/fr' lang='fr'
| Français
br/
= render 'shared/counter'
.row
.col-xs-12.col-md-7
h2.sr-only =t('.form')
+6 -2
View File
@@ -38,12 +38,16 @@ de:
pages:
thanks:
title: Besten Dank für deine Unterstützung!
shared:
header:
logo: Logo der Initiative
title_html: Ja, ich will <strong class="text-success">Cannabis</strong> in der Schweiz <strong class="text-success">legalisieren</strong>
counter:
supporters: "Unterstützer:"
amount_of_supporters: Zurzeit haben wir %{amount} Unterstützer.
mongoid:
attributes:
supporter: