]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/feature.html.erb
Add support for an unversioned 'versions' API call
[rails.git] / app / views / browse / feature.html.erb
index 1e0f118d83803978883640a17479d60e59811da9..6c94b0a9dfd50aa8dab39c5ec33611c29c4abd2e 100644 (file)
@@ -2,13 +2,13 @@
 
 <h2>
   <a class="geolink" href="<%= root_path %>"><span class="icon close"></span></a>
-  <%= t("browse.#{@type}.title", :name => printable_name(@feature)) %>
+  <%= raw t("browse.#{@type}.title", :name => printable_name(@feature)) %>
 </h2>
 
 <%= render :partial => @type, :object => @feature %>
 
 <div class='secondary-actions'>
-  <%= link_to(t('browse.download_xml'), :controller => @type, :action => "read") %>
+  <%= link_to(t("browse.download_xml"), :controller => "api/#{@type.pluralize}", :action => :show) %>
   &middot;
-  <%= link_to(t('browse.view_history'), :action => "#{@type}_history") %>
+  <%= link_to(t("browse.view_history"), :action => "#{@type}_history") %>
 </div>