-
Notifications
You must be signed in to change notification settings - Fork 8
/
application_960.html.haml
40 lines (38 loc) · 1.71 KB
/
application_960.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
!!! 5
%html
%head
%meta{ :charset => "utf-8" }/
-#
Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess
%meta{ :content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible" }/
%meta{ :content => "", :name => "description" }/
%meta{ :content => "", :name => "author" }/
%meta{ :content => "", :name => "keywords" }/
%meta{ :content => "", :name => "copyright" }/
-# Mobile viewport optimized: j.mp/bplateviewport
%meta{ :content => "width=device-width; initial-scale=1.0", :name => "viewport" }/
-# Place favicon.ico and apple-touch-icon.png in the root of your domain and delete these references
-# %link{ :href => "/favicon.ico", :rel => "shortcut icon" }/
-# %link{ :href => "/apple-touch-icon.png", :rel => "apple-touch-icon" }/
%title= "[Default title] #{yield(:title)}"
= raw stylesheet_link_merged('screen')
-# For the less-enabled mobile browsers like Opera Mini
= raw stylesheet_link_merged('handheld', :media => 'handheld')
= csrf_meta_tag
%body{ :class => "#{controller.controller_name}" }
#container
#header HEADER
#sidebar SIDEBAR
#content
#flash
- flash.each do |key, value|
%div{ :title => key.to_s.humanize, :class => key }
%p= value
= yield
#footer
%p.copyright
Copyright © #{Date.today.year}
%script{ :type => "text/javascript", :src => "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" }
%script{ :type => "text/javascript", :src => "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js" }
= raw javascript_include_merged(:base)