Put auto discovery links in the document head.

This commit is contained in:
Tom Hughes 2009-03-06 14:27:40 +00:00
parent f6a5d22816
commit bddb7dd8f9
3 changed files with 6 additions and 0 deletions

View file

@ -29,4 +29,7 @@
<br />
<%= rss_link_to :action => 'rss' %>
<% content_for :head %>
<%= auto_discovery_link_tag :atom, :action => 'rss' %>
<% end %>

View file

@ -7,6 +7,7 @@
<%= stylesheet_link_tag 'site' %>
<%= stylesheet_link_tag 'print', :media => "print" %>
<%= tag("link", { :rel => "search", :type => "application/opensearchdescription+xml", :title => "OpenStreetMap Search", :href => "/opensearch/osm.xml" }) %>
<%= yield :head %>
<title>OpenStreetMap<%= ' | '+ h(@title) if @title %></title>
</head>
<body>

View file

@ -1,6 +1,8 @@
<h1><%= h(@title) %></h1>
<% content_for :head do %>
<%= auto_discovery_link_tag :atom, :action => 'georss', :display_name => @display_name, :tag => @tag %>
<% end %>
<p>
<%= rss_link_to :action => 'georss', :display_name => @display_name, :tag => @tag %>