2012-10-08 11:51:56 +02:00
|
|
|
= render layout: 'layouts/header' do
|
2012-11-24 15:23:12 +01:00
|
|
|
.logo
|
2013-02-05 12:11:29 +01:00
|
|
|
= t('layouts.logo').html_safe
|
2012-11-24 15:23:12 +01:00
|
|
|
%ul.nav.nav-pills.pull-right
|
|
|
|
%li.dropdown
|
|
|
|
%a.dropdown-toggle(data-toggle="dropdown" href="#")
|
2013-09-20 22:40:13 +02:00
|
|
|
= show_user current_user
|
2012-11-24 15:23:12 +01:00
|
|
|
%b.caret
|
|
|
|
%ul.dropdown-menu
|
2013-02-05 12:11:29 +01:00
|
|
|
%li= link_to t('.profile'), my_profile_path
|
|
|
|
%li= link_to t('.ordergroup'), my_ordergroup_path
|
2019-11-11 12:09:18 +01:00
|
|
|
- if BankAccount.any? && FinancialTransactionType.with_name_short.any?
|
|
|
|
%li= link_to t('.reference_calculator'), home_reference_calculator_path
|
2013-02-05 12:11:29 +01:00
|
|
|
%li= link_to t('.logout'), logout_path
|
2014-03-16 02:08:15 +01:00
|
|
|
%li{class: ('disabled' if FoodsoftConfig[:homepage].blank?)}
|
2023-03-29 16:00:18 +02:00
|
|
|
= link_to FoodsoftConfig[:name], FoodsoftConfig[:homepage], target: '_blank'
|
2017-08-19 17:08:07 +02:00
|
|
|
- if FoodsoftConfig[:help_url]
|
2023-03-29 16:00:18 +02:00
|
|
|
%li= link_to t('.help'), FoodsoftConfig[:help_url], target: '_blank'
|
2013-02-05 12:11:29 +01:00
|
|
|
%li= link_to t('.feedback.title'), new_feedback_path, title: t('.feedback.desc')
|
2012-11-24 15:23:12 +01:00
|
|
|
.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
|
2014-09-10 13:27:45 +02:00
|
|
|
= bootstrap_flash_patched
|
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
|
2014-09-10 13:27:45 +02:00
|
|
|
= bootstrap_flash_patched
|
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
|
|
|
|
2014-06-06 17:50:20 +02:00
|
|
|
= render 'layouts/footer'
|
2012-11-10 16:44:05 +01:00
|
|
|
#modalContainer.modal.hide.fade(tabindex="-1" role="dialog")
|