finish layouts i18n, use help url from config, use html language from locale
This commit is contained in:
parent
5b53749fe6
commit
39812bef99
7 changed files with 38 additions and 21 deletions
|
|
@ -1,19 +1,19 @@
|
|||
= render layout: 'layouts/header' do
|
||||
.logo
|
||||
<span>food</span>soft
|
||||
= t('layouts.logo').html_safe
|
||||
%ul.nav.nav-pills.pull-right
|
||||
%li.dropdown
|
||||
%a.dropdown-toggle(data-toggle="dropdown" href="#")
|
||||
= current_user.nick
|
||||
%b.caret
|
||||
%ul.dropdown-menu
|
||||
%li= link_to "Profil bearbeiten", my_profile_path
|
||||
%li= link_to "Meine Bestellgruppe", my_ordergroup_path
|
||||
%li= link_to "Abmelden", logout_path
|
||||
%li= link_to t('.profile'), my_profile_path
|
||||
%li= link_to t('.ordergroup'), my_ordergroup_path
|
||||
%li= link_to t('.logout'), logout_path
|
||||
%li{class: ('disabled' if FoodsoftConfig.config[:homepage].blank?)}
|
||||
= link_to FoodsoftConfig.config[:name], FoodsoftConfig.config[:homepage]
|
||||
%li= link_to "Hilfe", 'https://github.com/bennibu/foodsoft/wiki/Doku'
|
||||
%li= link_to "Feedback", new_feedback_path, title: "Fehler gefunden? Vorschlag? Idee? Kritik?"
|
||||
%li= link_to t('.help'), FoodsoftConfig.config[:help_url]
|
||||
%li= link_to t('.feedback.title'), new_feedback_path, title: t('.feedback.desc')
|
||||
.clearfix
|
||||
|
||||
.navbar
|
||||
|
|
@ -49,6 +49,5 @@
|
|||
= yield
|
||||
|
||||
%footer
|
||||
%p
|
||||
Foodsoft, open source software to manage a non-profit food coop.
|
||||
%p= t '.footer'
|
||||
#modalContainer.modal.hide.fade(tabindex="-1" role="dialog")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue