class Skyline::Presenters::Table < Skyline::Presenters::Presenter
def output
content_tag("table",super, :class => "listing")
end
def header
"#{self.heading_collection.map{|f| content_tag("th",f.singular_label.capitalize)}.join("\n")} "
end
def body
if self.collection.any?
self.collection.map{|el| next if el.new_record?; content_tag("tr",self.row(el).join("\n"), :class => cycle("odd","even")) }
else
"