2012-10-08 11:51:56 +02:00
|
|
|
= render layout: 'layouts/header' do
|
2012-11-24 15:23:12 +01:00
|
|
|
.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
|
2012-10-06 17:14:57 +02:00
|
|
|
|
2012-11-24 15:23:12 +01:00
|
|
|
.navbar
|
2012-10-08 11:51:56 +02:00
|
|
|
.navbar-inner
|
2012-11-24 15:23:12 +01:00
|
|
|
.container
|
2012-10-08 11:51:56 +02:00
|
|
|
%a.btn.btn-navbar(data-target=".nav-collapse" data-toggle="collapse")
|
|
|
|
%span.icon-bar
|
|
|
|
%span.icon-bar
|
|
|
|
%span.icon-bar
|
2012-11-24 15:23:12 +01:00
|
|
|
.nav-collapse.collapse
|
2012-10-08 11:51:56 +02:00
|
|
|
= render_navigation expand_all: true, renderer: :bootstrap
|
2012-10-06 17:14:57 +02:00
|
|
|
|
2012-10-08 11:51:56 +02:00
|
|
|
.container-fluid
|
2012-10-06 17:14:57 +02:00
|
|
|
.row-fluid
|
2012-10-08 11:51:56 +02:00
|
|
|
- if content_for?(:sidebar)
|
2012-10-15 21:19:17 +02:00
|
|
|
.span3
|
2012-10-08 11:51:56 +02:00
|
|
|
= yield(:sidebar)
|
2012-10-15 21:19:17 +02:00
|
|
|
.span9
|
2012-10-08 11:51:56 +02:00
|
|
|
= bootstrap_flash
|
2012-11-12 13:13:01 +01:00
|
|
|
- if content_for?(:actionbar)
|
|
|
|
.btn-toolbar.pull-right= yield(:actionbar)
|
2012-10-06 17:14:57 +02:00
|
|
|
- if show_title?
|
|
|
|
.page-header
|
|
|
|
%h1= yield(:title)
|
|
|
|
= yield
|
2012-10-08 11:51:56 +02:00
|
|
|
- else
|
|
|
|
= bootstrap_flash
|
2012-11-12 13:13:01 +01:00
|
|
|
- if content_for?(:actionbar)
|
|
|
|
.btn-toolbar.pull-right= yield(:actionbar)
|
2012-10-08 11:51:56 +02:00
|
|
|
- if show_title?
|
|
|
|
.page-header
|
|
|
|
%h1= yield(:title)
|
|
|
|
= yield
|
2009-02-18 12:01:51 +01:00
|
|
|
|
2012-10-08 11:51:56 +02:00
|
|
|
%footer
|
|
|
|
%p
|
|
|
|
Foodsoft, open source software to manage a non-profit food coop.
|
2012-11-10 16:44:05 +01:00
|
|
|
#modalContainer.modal.hide.fade(tabindex="-1" role="dialog")
|