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

53 lines
1.6 KiB
Text
Raw 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
%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]
%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
- 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
2014-06-06 17:50:20 +02:00
= render 'layouts/footer'
#modalContainer.modal.hide.fade(tabindex="-1" role="dialog")