Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 59 lines (50 sloc) 1.836 kb
75447a9d »
2009-04-10 work in progress
1 if File.exists?('vendor/plugins/haml')
2
3 file 'app/views/layouts/_flashes.html.haml', <<-HAML
4 #flash
5 - flash.each do |key, value|
6 %div{:id => "flash_\#{key}"}= value
7 HAML
8
9 file 'app/views/layouts/application.html.haml', <<-HAML
10 !!! XML
11 !!! Strict
12 %html{'xmlns' => 'http://www.w3.org/1999/xhtml', 'xml:lang' => 'en', 'lang' => 'en'}
13 %head
14 %meta{'http-equiv' => 'Content-Type', :content => 'text/html; charset=utf-8'}
15 %title= "\#{page_title + ' - ' unless page_title.blank?}\#{t(:app_name)}"
16 = stylesheet_link_tag 'screen.css', :media => 'screen, projection'
17 = stylesheet_link_tag 'print.css', :media => 'print'
18 /[if IE]
19 = stylesheet_link_tag 'ie.css', :media => 'screen, projection'
20 %body{:class => body_class}
21 = render :partial => 'layouts/flashes'
22 = yield
23 HAML
24
25 else
26
27 file 'app/views/layouts/_flashes.html.erb', <<-ERB
28 <div id="flash">
29 <% flash.each do |key, value| -%>
30 <div id="flash_<%= key %>"><%=h value %></div>
31 <% end -%>
32 </div>
33 ERB
34
35 file 'app/views/layouts/application.html.erb', <<-ERB
36 <?xml version='1.0' encoding='utf-8' ?>
37 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
38 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
39 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
40 <head>
41 <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
42 <title><%= page_title + ' - ' unless page_title.blank? %><%=t :app_name %></title>
43 <%= stylesheet_link_tag 'screen.css', :media => 'screen, projection' %>
44 <%= stylesheet_link_tag 'print.css', :media => 'print' %>
45 <!--[if IE]>
46 <%= stylesheet_link_tag 'ie.css', :media => 'screen, projection' %>
47 <![endif]-->
48 </head>
49 <body class="<%= body_class %>">
50 <%= render :partial => 'layouts/flashes' -%>
51 <%= yield %>
52 </body>
53 </html>
54 ERB
55
56 end
57
58
Something went wrong with that request. Please try again.