]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/browse_helper.rb
Add element list item helper
[rails.git] / app / helpers / browse_helper.rb
index 07fa48daf87fa1596e3408f523b25351c9c36399..29f243cf4635c356529bc9c4e3d0aa09e83db4d4 100644 (file)
@@ -7,6 +7,12 @@ module BrowseHelper
     end
   end
 
     end
   end
 
+  def element_list_item(type, object, &block)
+    tag.li :class => element_class(type, object) do
+      element_strikethrough object, &block
+    end
+  end
+
   def printable_name(object, version: false)
     id = if object.id.is_a?(Array)
            object.id[0]
   def printable_name(object, version: false)
     id = if object.id.is_a?(Array)
            object.id[0]