]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/relation_history.html.erb
Wrap GPX API calls with the API error handler, and make sure the create
[rails.git] / app / views / browse / relation_history.html.erb
index 45f3d14004c8daa508b1fc595021943ba20167dd..a62ac2ef73e674d189e8dc76787cba43f8ba63fd 100644 (file)
@@ -2,7 +2,7 @@
 @name = printable_name @relation
 @title = t('browse.relation_history.relation_history') + ' | ' + @name
 %>
-<h2><%= t'browse.relation_history.relation_history_title', :relation_name => h(@name) %></h2>
+<h2><%= t'browse.relation_history.relation_history_title', :relation_name => link_to(h(@name), :action => "relation", :id => @relation.id) %></h2>
 
 <table width="100%">
   <tr valign="top">
@@ -11,9 +11,8 @@
         <%= render :partial => "relation_details", :object => relation %>
         <hr />
       <% end %>
-      <%= link_to "Download XML", :controller => "old_relation", :action => "history" %>
-      or
-      <%= link_to "view details", :action => "relation" %>
+      <%= t'browse.relation_history.download', :download_xml_link => link_to(t('browse.relation_history.download_xml'), :controller => "old_relation", :action => "history"), 
+                                               :view_details_link => link_to(t('browse.relation_history.view_details'), :action => "relation") %>
     </td>
     <%= render :partial => "map", :object => @relation %>
   </tr>