- stati = @models.map{|m| "#{m.id}" if m.status !~ /Completed|Error/}.compact - stati_to_check = stati.length > 0 ? stati.join(", ") : stati = 0 :javascript $(function() { if(#{stati != 0}) { setTimeout('checkStati("#{stati_to_check}", "")',5000); } var reload_validation = true; }); -# %p Get an overview about ToxCreate models. This page is refreshed every 15 seconds to update the model status. %p Get an overview about ToxCreate models. Parts of this page are refreshed every 5 seconds to update the model status. -# explanations = haml :classification, :layout => false = haml :lazar_description, :layout => false = haml :regression, :layout => false = haml :similarity, :layout => false = haml :significant_fragments, :layout => false - first = 5*@page - last = first+4 = models_navigation if @models.size > 1 - if @models[first..last] - @models[first..last].each do |model| = haml :model, :locals=>{:model=>model}, :layout => false -if @models.size == 0 .notice There are currently no models. You have to create a model first. = models_navigation_bottom if @models.size > 1