foodsoft/app/views/layouts/application.html.haml

54 lines
1.7 KiB
Text

= render layout: 'layouts/header' do
.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-inner
.container
%a.btn.btn-navbar(data-target=".nav-collapse" data-toggle="collapse")
%span.icon-bar
%span.icon-bar
%span.icon-bar
.nav-collapse.collapse
= render_navigation expand_all: true, renderer: :bootstrap
.container-fluid
.row-fluid
- if content_for?(:sidebar)
.span3
= yield(:sidebar)
.span9
= bootstrap_flash
- if content_for?(:actionbar)
.btn-toolbar.pull-right= yield(:actionbar)
- if show_title?
.page-header
%h1= yield(:title)
= yield
- else
= bootstrap_flash
- if content_for?(:actionbar)
.btn-toolbar.pull-right= yield(:actionbar)
- if show_title?
.page-header
%h1= yield(:title)
= yield
%footer
%p
Foodsoft, open source software to manage a non-profit food coop.
#modalContainer.modal.hide.fade(tabindex="-1" role="dialog")