X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/db30a423a8f923bbcae709e1c8f6e337f637bc9a..dffe87909dabac40186ee647282cd6220a4836fd:/app/views/browse/_common.rhtml
diff --git a/app/views/browse/_common.rhtml b/app/views/browse/_common.rhtml
index 70b96590b..f237bfe15 100644
--- a/app/views/browse/_common.rhtml
+++ b/app/views/browse/_common.rhtml
@@ -1,9 +1,13 @@
+<% if obj.visible %>
<%= render :partial => 'map', :locals => { :type => type, :id => obj.id } %>
+<% else %>
+Deleted
+<% end %>
-- <%= link_to h("API"), :controller => "api/#{API_VERSION}/"+type, :id => obj.id %>
-- <%= link_to h("History"), :controller => "api/#{API_VERSION}/"+type, :id => obj.id, :action => "history" %>
-
-Last edited: <%= h(obj.timestamp) %><% if obj.user.data_public %>,
- by <%= link_to h(obj.user.display_name), :controller => 'user', :action => 'view' , :display_name => obj.user.display_name %>
+<% if obj.visible %>
+<%= link_to h("API"), :controller => type, :action => "read", :id => obj.id %>
<% end %>
-
+<%= link_to h("History"), :controller => "old_" + type, :action => "history", :id => obj.id %>
+ (<%= link_to h("HTML"), :action => type+"_history", :id => obj.id %>)
+
+<%= render :partial => 'common_editedby', :locals => { :obj => obj } %>