summaryrefslogtreecommitdiff
path: root/views/model.haml
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-02-08 12:54:13 +0100
committermr <mr@mrautenberg.de>2011-02-08 12:54:13 +0100
commit076de3e6bdde29936926814409bdce4b0c7b7477 (patch)
tree96dd20d67dfd59e5a5ad331256956d21750c3808 /views/model.haml
parenta9d8b84a2872ae354bba0ea50c1915e96d69d824 (diff)
authorization A&A, task progress for model creation
Diffstat (limited to 'views/model.haml')
-rw-r--r--views/model.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/views/model.haml b/views/model.haml
index 2125283..32439a9 100644
--- a/views/model.haml
+++ b/views/model.haml
@@ -14,6 +14,11 @@
%dd
%span{:id => "model_#{model.id}_status", :class => "model_status"}
= haml :model_status, :locals=>{:model=>model}, :layout => false
+ - if model.task_uri && model.status != "Completedss"
+ - if (task = OpenTox::Task.exist?(model.task_uri))
+ - percentage_completed = task.metadata[OT.percentageCompleted]
+ %span{:id => "model_#{model.id}_progress", :class => "model_progress"}
+ = haml :model_progress, :locals=>{:percentage_completed=>percentage_completed}, :layout => false
- if is_authorized(model.web_uri, "DELETE")
(
%a{:href => url_for("/model/#{model.id}"), :id => "delete_#{model.id}", :class => 'delete'}
@@ -22,6 +27,7 @@
- else
stop
)
+
%dt Started:
%dd= model.created_at.strftime("%m/%d/%Y - %I:%M:%S%p")
- if model.nr_compounds