summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-02-09 17:14:04 +0100
committermr <mr@mrautenberg.de>2011-02-09 17:14:04 +0100
commit1f0b19023c2a308c21f9ddcf456053bf5b7ecb32 (patch)
tree7262581d8982b972d4e3c7c0ff4131fa3d78ad7d
parentfca252329ebb821d75a0bfc66fdc7332da92646c (diff)
refine haml
-rw-r--r--views/model.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/model.haml b/views/model.haml
index 9730a3f..340d29e 100644
--- a/views/model.haml
+++ b/views/model.haml
@@ -14,7 +14,7 @@
%dd
%span{:id => "model_#{model.id}_status", :class => "model_status"}
= haml :model_status, :locals=>{:model=>model}, :layout => false
- - if model.task_uri && model.status != "Completed"
+ - if model.task_uri && model.status !~ /Completed|Cancelled|Error/
- if (task = OpenTox::Task.exist?(model.task_uri))
- percentage_completed = task.metadata[OT.percentageCompleted].to_i
- js = "$('#model_#{model.id}_progress').progressbar({ value: #{percentage_completed} })";