From: Tom Hughes Date: Fri, 6 Mar 2009 14:27:40 +0000 (+0000) Subject: Put auto discovery links in the document head. X-Git-Tag: live~7643 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/bddb7dd8f9f685afade553b9b5badd6fa6497cf8 Put auto discovery links in the document head. --- diff --git a/app/views/diary_entry/list.rhtml b/app/views/diary_entry/list.rhtml index 7a2ccf74d..24977a205 100644 --- a/app/views/diary_entry/list.rhtml +++ b/app/views/diary_entry/list.rhtml @@ -29,4 +29,7 @@
<%= rss_link_to :action => 'rss' %> + +<% content_for :head %> <%= auto_discovery_link_tag :atom, :action => 'rss' %> +<% end %> diff --git a/app/views/layouts/site.rhtml b/app/views/layouts/site.rhtml index a15c5270b..34d2ecb30 100644 --- a/app/views/layouts/site.rhtml +++ b/app/views/layouts/site.rhtml @@ -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 %> OpenStreetMap<%= ' | '+ h(@title) if @title %> diff --git a/app/views/trace/_trace_header.rhtml b/app/views/trace/_trace_header.rhtml index b4ef3f612..f739d9053 100644 --- a/app/views/trace/_trace_header.rhtml +++ b/app/views/trace/_trace_header.rhtml @@ -1,6 +1,8 @@

<%= h(@title) %>

+<% content_for :head do %> <%= auto_discovery_link_tag :atom, :action => 'georss', :display_name => @display_name, :tag => @tag %> +<% end %>

<%= rss_link_to :action => 'georss', :display_name => @display_name, :tag => @tag %>