]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/browse_helper.rb
Add strikethrough style to browser when objects are deleted
[rails.git] / app / helpers / browse_helper.rb
index f121f2f0bb3cd61a5e0ea9c89e29e7f13340cdc4..e929d9755140f82275dcac391febb1ff1f05541b 100644 (file)
@@ -17,7 +17,7 @@ module BrowseHelper
   end
 
   def link_class(type, object)
-    return type + " " + h(icon_tags(object).join(' '))
+    return type + " " + h(icon_tags(object).join(' ')) + (object.visible == false ? ' deleted' : '')
   end
 
   def link_title(object)