]> git.openstreetmap.org Git - rails.git/blob - app/views/layouts/slim.html.erb
a97e526b1ef7f6012abd2628516eb02326107be8
[rails.git] / app / views / layouts / slim.html.erb
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<%= I18n.locale %>" lang="<%= I18n.locale %>" dir="<%= t'html.dir' %>">
3   <head>
4     <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0"/>
5     <%= javascript_strings %>
6     <%= javascript_include_tag 'prototype' %>
7     <%= javascript_include_tag 'site' %>
8     <%= javascript_include_tag 'menu' %>
9     <!--[if lt IE 7]><%= javascript_include_tag 'pngfix' %><![endif]--> <!-- thanks, microsoft! -->
10     <%= stylesheet_link_tag 'common' %>
11     <!--[if IE]><%= stylesheet_link_tag 'large', :media => "screen" %><![endif]--> <!-- IE is totally broken with CSS media queries -->
12     <%= stylesheet_link_tag 'small', :media => "only screen and (max-width: 481px)" %>
13     <%= stylesheet_link_tag 'large', :media => "screen and (min-width: 482px)" %> 
14     <%= stylesheet_link_tag 'print', :media => "print" %>
15     <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => "/opensearch/osm.xml" }) %>
16     <%= tag("meta", { :name => "description", :content => "OpenStreetMap is the free wiki world map." }) %>
17     <%= style_rules %>
18     <%= yield :head %>
19     <title><%= t 'layouts.project_name.title' %><%= ' | '+ h(@title) if @title %></title>
20   </head>
21   <body class="slim">
22     <div id="slim_container">
23       <div id="slim_container_content">
24         <div id="slim_content">
25           <% if flash[:error] %>
26             <div id="error"><%= flash[:error] %></div>
27           <% end %>
28           <% if flash[:warning] %>
29             <div id="warning"><%= flash[:warning] %></div>
30           <% end %>
31           <% if flash[:notice] %>
32             <div id="notice"><%= flash[:notice] %></div>
33           <% end %>
34
35           <%= yield %>
36         </div>
37
38         <div id="slim_header">
39           <h1><%= image_tag("osm_logo.png", :size => "60x60", :border => 0, :alt => t('layouts.logo.alt_text')) %><%= t 'layouts.project_name.h1' %></h1>
40         </div>
41       </div>
42     </div>
43
44
45   </body>
46 </html>