foodsoft/app/views/layouts/application.haml

43 lines
1.4 KiB
Plaintext
Raw Normal View History

2009-01-06 11:49:19 +01:00
!!!
%html
%head
%meta{"http-equiv" => "content-type", :content => "text/html;charset=UTF-8"}
%title= "FoodSoft - " + (yield(:title) or controller.controller_name)
2009-02-18 11:41:03 +01:00
= stylesheet_link_tag 'base'
= stylesheet_link_tag 'style'
2009-01-06 11:49:19 +01:00
= javascript_include_tag 'prototype'
= javascript_include_tag 'effects'
= javascript_include_tag 'controls'
= javascript_include_tag 'application'
= javascript_include_tag('ordering') if (controller.controller_name == "ordering")
%body
2009-02-18 11:41:03 +01:00
#container
#header
%h1
%a{:href => "/"}= APP_CONFIG[:name]
#user-navigation
= render :partial => 'shared/loginInfo'
.clear
#main-navigation
= render :partial => 'layouts/main_tabnav'
.clear
#wrapper
#loader{:style => "display:none;"}
= image_tag("loader.gif", :border => 0)
#main
- if flash[:notice]
.flash-messages.notice
%p= flash[:notice]
- if flash[:error]
.flash-messages.error
%p= flash[:error]
= yield
#sidebar
= yield(:sidebar)
.clear
#footer
.block
%p= "#{APP_CONFIG[:name]} is powered by FoodSoft"
- if flash[:notice] or flash[:error]
= javascript_tag("new Effect.Highlight('flash-messages', {delay:0.8, duration:1});")