]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_common.rhtml
link to html history
[rails.git] / app / views / browse / _common.rhtml
index ec590bda0319381a88987a2fde017593b0c30909..f237bfe155ab01a66d8ac28702b8eb2d54bbf482 100644 (file)
@@ -5,8 +5,9 @@ Deleted
 <% end %>
 <ul>
 <% if obj.visible %>
-<li><%= link_to h("API"), :controller => "api/#{API_VERSION}/"+type, :id => obj.id %></li>
+<li><%= link_to h("API"), :controller => type, :action => "read", :id => obj.id %></li>
 <% end %>
-<li><%= link_to h("History"), :controller => "api/#{API_VERSION}/"+type, :id => obj.id, :action => "history" %></li>
+<li><%= link_to h("History"), :controller => "old_" + type, :action => "history", :id => obj.id %> 
+    (<%= link_to h("HTML"), :action => type+"_history", :id => obj.id %>)</li>
 </ul>
 <%= render :partial => 'common_editedby', :locals => { :obj => obj } %>