]> git.openstreetmap.org Git - rails.git/commitdiff
Put auto discovery links in the document head.
authorTom Hughes <tom@compton.nu>
Fri, 6 Mar 2009 14:27:40 +0000 (14:27 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 6 Mar 2009 14:27:40 +0000 (14:27 +0000)
app/views/diary_entry/list.rhtml
app/views/layouts/site.rhtml
app/views/trace/_trace_header.rhtml

index 7a2ccf74d6bea047b5cf9c7659e900306cf103ff..24977a2050f2cf018639936872195387c844ed48 100644 (file)
@@ -29,4 +29,7 @@
 <br />
 
 <%= rss_link_to :action => 'rss' %>
+
+<% content_for :head %>
 <%= auto_discovery_link_tag :atom, :action => 'rss' %>
+<% end %>
index a15c5270bbe9f7054ece7d26ce035a6fcc4fc3b1..34d2ecb309c81afa994d1bfc8b9b5350d25617ab 100644 (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>
index b4ef3f61273c125b1396f65618173e696f47e4de..f739d90532c7a46a5a995a4a7e2d931887caf416 100644 (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 %>