summaryrefslogtreecommitdiff
path: root/views/model.haml
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-02-11 16:49:13 +0100
committermr <mr@mrautenberg.de>2011-02-11 16:49:13 +0100
commit50a06e7077681317bcf0da4fc4aa6ff36c19e4a3 (patch)
treeff655daef56b6dbd4879af411c1b0b7835f65f5e /views/model.haml
parent1f0b19023c2a308c21f9ddcf456053bf5b7ecb32 (diff)
refining task_uri query
Diffstat (limited to 'views/model.haml')
-rw-r--r--views/model.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/model.haml b/views/model.haml
index 340d29e..8112dd6 100644
--- a/views/model.haml
+++ b/views/model.haml
@@ -14,8 +14,9 @@
%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|Cancelled|Error/
+ - if model.task_uri && model.status !~ /Completed|Cancelled|Error|Deleting/
- if (task = OpenTox::Task.exist?(model.task_uri))
+ %input{:type => 'hidden', :id => "model_#{model.id}_task", :value => "#{model.task_uri}"}
- percentage_completed = task.metadata[OT.percentageCompleted].to_i
- js = "$('#model_#{model.id}_progress').progressbar({ value: #{percentage_completed} })";
:javascript