= render layout: 'layouts/header' do .logo = t('layouts.logo').html_safe %ul.nav.nav-pills.pull-right %li.dropdown %a.dropdown-toggle(data-toggle="dropdown" href="#") = show_user current_user %b.caret %ul.dropdown-menu %li= link_to t('.profile'), my_profile_path %li= link_to t('.ordergroup'), my_ordergroup_path - if BankAccount.any? && FinancialTransactionType.with_name_short.any? %li= link_to t('.reference_calculator'), home_reference_calculator_path %li= link_to t('.logout'), logout_path %li{class: ('disabled' if FoodsoftConfig[:homepage].blank?)} = link_to FoodsoftConfig[:name], FoodsoftConfig[:homepage] - if FoodsoftConfig[:help_url] %li= link_to t('.help'), FoodsoftConfig[:help_url] %li= link_to t('.feedback.title'), new_feedback_path, title: t('.feedback.desc') .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_patched - if content_for?(:actionbar) .btn-toolbar.pull-right= yield(:actionbar) - if show_title? .page-header %h1= yield(:title) = yield - else = bootstrap_flash_patched - if content_for?(:actionbar) .btn-toolbar.pull-right= yield(:actionbar) - if show_title? .page-header %h1= yield(:title) = yield = render 'layouts/footer' #modalContainer.modal.hide.fade(tabindex="-1" role="dialog")