summaryrefslogtreecommitdiff
path: root/views/models.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/models.haml')
-rw-r--r--views/models.haml21
1 files changed, 21 insertions, 0 deletions
diff --git a/views/models.haml b/views/models.haml
new file mode 100644
index 0000000..17d9c8a
--- /dev/null
+++ b/views/models.haml
@@ -0,0 +1,21 @@
+- stati = @models.map{|m| "#{m.id}" if m.status != "Completed"}.compact
+- stati_to_check = stati.length > 0 ? stati.join(", ") : stati = 0
+:javascript
+ $(function() {
+ if(#{stati != 0}) {
+ setTimeout('checkStati("#{stati_to_check}")',1500);
+ }
+ var reload_validation = true;
+ if(reload_validation) setTimeout('checkValidation()',15000);
+ });
+
+-# %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. This page is refreshed every 5 seconds to update the model status.
+
+-# explanations
+= haml :lazar_description, :layout => false
+= haml :classification, :layout => false
+= haml :regression, :layout => false
+
+- @models.each do |model|
+ = haml :model, :locals=>{:model=>model}, :layout => false