X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/db30a423a8f923bbcae709e1c8f6e337f637bc9a..449567e9a676321681cbb4f8c244502172e8c261:/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 %> -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 } %>