X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0c480e05f0f11c881c5c0f2d47cc5c3328a4a3a4..449567e9a676321681cbb4f8c244502172e8c261:/app/views/browse/_common.rhtml?ds=sidebyside diff --git a/app/views/browse/_common.rhtml b/app/views/browse/_common.rhtml index d400405c3..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 %> -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 } %>