Changed header to copy old foodsoft style.
This commit is contained in:
parent
e1cb866935
commit
ecc31641aa
4 changed files with 42 additions and 20 deletions
|
|
@ -4,7 +4,7 @@
|
|||
%meta(charset="utf-8")
|
||||
%meta(http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1")
|
||||
%meta(name="viewport" content="width=device-width, initial-scale=1.0")
|
||||
%title= content_for?(:title) ? yield(:title) : "Foodsoft"
|
||||
%title= ["Foodsoft", yield(:title)].join(" - ")
|
||||
= csrf_meta_tags
|
||||
= stylesheet_link_tag "application", :media => "all"
|
||||
%link(href="images/apple-touch-icon-144x144.png" rel="apple-touch-icon-precomposed" sizes="144x144")
|
||||
|
|
|
|||
|
|
@ -1,15 +1,29 @@
|
|||
= render layout: 'layouts/header' do
|
||||
.row-fluid
|
||||
.logo
|
||||
<span>food</span>soft
|
||||
%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{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?"
|
||||
.clearfix
|
||||
|
||||
.navbar.navbar-fixed-top
|
||||
.navbar
|
||||
.navbar-inner
|
||||
.container-fluid
|
||||
.container
|
||||
%a.btn.btn-navbar(data-target=".nav-collapse" data-toggle="collapse")
|
||||
%span.icon-bar
|
||||
%span.icon-bar
|
||||
%span.icon-bar
|
||||
= link_to 'Foodsoft', root_path(anchor: ''), class: 'brand'
|
||||
.container.nav-collapse
|
||||
.nav-collapse.collapse
|
||||
= render_navigation expand_all: true, renderer: :bootstrap
|
||||
|
||||
.container-fluid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue