Using proper language navigating

This commit is contained in:
2017-02-26 17:01:34 +01:00
parent 00be66373e
commit c85e2a6d45
5 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
html
html lang="#{I18n.locale}"
head
title #CH420 - #{content_for(:title)}
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
+5 -4
View File
@@ -5,14 +5,15 @@
h1
= title t('.title_html')
.col-xs-12.col-md-3
.pull-right
a href='/'
nav.pull-right
h2.sr-only =t('.lang')
a href='/' lang='de'
| Deutsch
|   |  
a href='/it'
a href='/it' lang='it'
| Italiano
|   |  
a href='/fr'
a href='/fr' lang='fr'
| Français
br/
= render 'shared/counter'