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 12:01:51 +01:00
|
|
|
= stylesheet_link_tag 'foodsoft'
|
|
|
|
= stylesheet_link_tag "print", :media => "print"
|
2009-06-19 21:38:51 +02:00
|
|
|
<!--[if lte IE 7]>
|
|
|
|
= stylesheet_link_tag 'ie_hacks'
|
|
|
|
<![endif]-->
|
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 12:01:51 +01:00
|
|
|
#logininfo= render :partial => 'shared/loginInfo'
|
|
|
|
|
|
|
|
#header
|
|
|
|
#logo
|
|
|
|
%a{:href => "/"}
|
|
|
|
<span>food</span>soft
|
2009-03-24 17:25:33 +01:00
|
|
|
%span{:style => "color:white; font-size:45%; letter-spacing: -1px;"}= Foodsoft.config[:name]
|
2009-02-18 12:01:51 +01:00
|
|
|
#nav= render :partial => 'layouts/main_tabnav'
|
|
|
|
|
|
|
|
#main
|
|
|
|
#content
|
|
|
|
- if flash[:notice]
|
|
|
|
%h3.notice#flashNotice= flash[:notice]
|
|
|
|
- if flash[:error]
|
|
|
|
%h3.error#flashError= flash[:error]
|
|
|
|
#loader{:style => "display:none;"}= image_tag("loader.gif", :border => 0)
|
|
|
|
- if yield(:title)
|
|
|
|
%h1= yield(:title)
|
|
|
|
= yield
|
|
|
|
|
|
|
|
- if flash[:notice]
|
|
|
|
= javascript_tag("new Effect.Highlight('flashNotice', {delay:0.8, duration:1});")
|
|
|
|
- if flash[:error]
|
|
|
|
= javascript_tag("new Effect.Highlight('flashError', {delay:0.8, duration:1});")
|