42 lines
1.4 KiB
Text
42 lines
1.4 KiB
Text
!!!
|
|
%html
|
|
%head
|
|
%meta{"http-equiv" => "content-type", :content => "text/html;charset=UTF-8"}
|
|
%title= "FoodSoft - " + (yield(:title) or controller.controller_name)
|
|
= stylesheet_link_tag 'base'
|
|
= stylesheet_link_tag 'style'
|
|
= 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
|
|
#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});")
|