|
|
|
@ -2,7 +2,7 @@ class Widget::Table::Progressbar < Widget::Base |
|
|
|
|
THRESHHOLD = 500 |
|
|
|
|
|
|
|
|
|
def render |
|
|
|
|
if Widget::Table::ReportTable.new(@query).cached? || size = @query.size >= THRESHHOLD |
|
|
|
|
if !Widget::Table::ReportTable.new(@query).cached? && size = @query.size >= THRESHHOLD |
|
|
|
|
write(content_tag :div, :id => "progressbar", :class => "form_controls", |
|
|
|
|
:"data-query-size" => size do |
|
|
|
|
content_tag :div, :id => "progressbar-load-table-question", :class => "form_controls" do |
|
|
|
|