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

56 lines
1.9 KiB
Text
Raw Permalink Normal View History

= 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="#")
2013-09-20 22:40:13 +02:00
= 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
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
%li= link_to t('.logout'), logout_path
2014-03-16 02:08:15 +01:00
%li{class: ('disabled' if FoodsoftConfig[:homepage].blank?)}
= link_to FoodsoftConfig[:name], FoodsoftConfig[:homepage], target: '_blank'
- if FoodsoftConfig[:help_url]
%li= link_to t('.help'), FoodsoftConfig[:help_url], target: '_blank'
%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
2014-09-10 13:27:45 +02:00
= bootstrap_flash_patched
- if content_for?(:actionbar)
.btn-toolbar.pull-right= yield(:actionbar)
- if show_title?
.page-header
%h1= yield(:title)
= yield
- else
2014-09-10 13:27:45 +02:00
= bootstrap_flash_patched
- if content_for?(:actionbar)
.btn-toolbar.pull-right= yield(:actionbar)
- if show_title?
.page-header
%h1= yield(:title)
= yield
2014-06-06 17:50:20 +02:00
= render 'layouts/footer'
#modalContainer.modal.hide.fade(tabindex="-1" role="dialog")