remove simple table for now. gets rid of code duplication too, so a certain someone won't go all 'DUDE, seriously' on me

pull/6827/head
jwollert 14 years ago
parent 3c608137f8
commit 74c78fe9db
  1. 12
      lib/widget/table.rb

@ -24,14 +24,10 @@ class Widget::Table < Widget::Base
end
def table_widget
if @query.depth_of(:column) + @query.depth_of(:row) == 0
Widget::Table::SimpleTable
else
if @query.depth_of(:row) == 0
@query.row(:singleton_value)
elsif @query.depth_of(:column) == 0
@query.column(:singleton_value)
end
if @query.depth_of(:row) == 0
@query.row(:singleton_value)
elsif @query.depth_of(:column) == 0
@query.column(:singleton_value)
end
Widget::Table::ReportTable
end

Loading…
Cancel
Save