uncomment table query adjustments

pull/6827/head
Tim Felgentreff 14 years ago
parent 3e574c9051
commit ec236411e5
  1. 18
      lib/widget/table.rb

@ -24,15 +24,15 @@ class Widget::Table < Widget::Base
end
def render
# if @query.depth_of(:column) + @query.depth_of(:row) == 1
# widget = Widget::Table::SimpleTable
# else
# if @query.depth_of(:row) == 0
# @query.column(:singleton_value)
# elsif @query.depth_of(:column) == 0
# @query.row(:singleton_value)
# end
# end
if @query.depth_of(:column) + @query.depth_of(:row) == 0
widget = Widget::Table::SimpleTable
else
if @query.depth_of(:row) == 0
@query.column(:singleton_value)
elsif @query.depth_of(:column) == 0
@query.row(:singleton_value)
end
end
widget = Widget::Table::ReportTable
content_tag :div, :id => "result-table" do
if @query.result.count > 0

Loading…
Cancel
Save