]> git.openstreetmap.org Git - rails.git/commitdiff
Handle deleted items better.
authorChristopher Schmidt <crschmidt@crschmidt.net>
Sun, 20 Apr 2008 14:34:45 +0000 (14:34 +0000)
committerChristopher Schmidt <crschmidt@crschmidt.net>
Sun, 20 Apr 2008 14:34:45 +0000 (14:34 +0000)
app/views/browse/_common.rhtml

index d400405c37ada15e9b63da9f78d4624b56c929ae..d5db7c6cc19355294c6118137f8126fc43b4b8e8 100644 (file)
@@ -1,6 +1,12 @@
+<% if obj.visible %>
 <%= render :partial => 'map', :locals => { :type => type, :id => obj.id } %>
+<% else %>
+Deleted
+<% end %>
 <ul>
+<% if obj.visible %>
 <li><%= link_to h("API"), :controller => "api/#{API_VERSION}/"+type, :id => obj.id %></li>
+<% end %>
 <li><%= link_to h("History"), :controller => "api/#{API_VERSION}/"+type, :id => obj.id, :action => "history" %></li>
 </ul>
 Last edited: <%= h(obj.timestamp) %>