X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/aa8fef0f94e531949346ec07bc57382b18c4adde..873fe81f711338cbe25da1888192091b7a2cc497:/app/views/layouts/slim.html.erb diff --git a/app/views/layouts/slim.html.erb b/app/views/layouts/slim.html.erb new file mode 100644 index 000000000..e738f4c92 --- /dev/null +++ b/app/views/layouts/slim.html.erb @@ -0,0 +1,44 @@ + + + + + <%= javascript_strings %> + <%= javascript_include_tag 'prototype' %> + <%= javascript_include_tag 'site' %> + <%= javascript_include_tag 'menu' %> + + <%= stylesheet_link_tag 'common' %> + + <%= stylesheet_link_tag 'small', :media => "only screen and (max-width: 481px)" %> + <%= stylesheet_link_tag 'large', :media => "screen and (min-width: 482px)" %> + <%= stylesheet_link_tag 'print', :media => "print" %> + <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => "/opensearch/osm.xml" }) %> + <%= tag("meta", { :name => "description", :content => "OpenStreetMap is the free wiki world map." }) %> + <%= style_rules %> + <%= yield :head %> + <%= t 'layouts.project_name.title' %><%= ' | '+ h(@title) if @title %> + + + +
+ <% if flash[:error] %> +
<%= flash[:error] %>
+ <% end %> + <% if flash[:warning] %> +
<%= flash[:warning] %>
+ <% end %> + <% if flash[:notice] %> +
<%= flash[:notice] %>
+ <% end %> + + <%= yield %> +
+ +
+

<%= image_tag("osm_logo.png", :size => "60x60", :border => 0, :alt => t('layouts.logo.alt_text')) %><%= t 'layouts.project_name.h1' %>

+
+ + + + +