diff options
Diffstat (limited to 'views/model.haml')
-rw-r--r-- | views/model.haml | 6 |
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 |