]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/site.rhtml
Add OpenSearch search plugins from Jono to the site. Fixes #506.
[rails.git] / app / views / layouts / site.rhtml
index a2b912a977f80ac69c2ab67f01f95fa7bb0fb494..09c8273f4e307a1cd6d4de5e1226d8cb55179ba1 100644 (file)
@@ -4,6 +4,8 @@
     <%= javascript_include_tag 'site.js' %>
     <!--[if lt IE 7]><%= javascript_include_tag 'pngfix.js' %><![endif]--> <!-- thanks, microsoft! -->
     <%= stylesheet_link_tag 'site.css' %>
     <%= javascript_include_tag 'site.js' %>
     <!--[if lt IE 7]><%= javascript_include_tag 'pngfix.js' %><![endif]--> <!-- thanks, microsoft! -->
     <%= stylesheet_link_tag 'site.css' %>
+    <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Placename Search", :href => "/opensearch/osm.xml" }) %>
+    <%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Postcode Search", :href => "/opensearch/osm-postcode.xml" }) %>
     <title>OpenStreetMap<%= ' | '+@title if @title %></title>
   </head>
   <body>
     <title>OpenStreetMap<%= ' | '+@title if @title %></title>
   </head>
   <body>