summaryrefslogtreecommitdiff
path: root/views/model.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/model.haml')
-rw-r--r--views/model.haml8
1 files changed, 6 insertions, 2 deletions
diff --git a/views/model.haml b/views/model.haml
index 1788250..6c2aa56 100644
--- a/views/model.haml
+++ b/views/model.haml
@@ -14,9 +14,13 @@
%dd
%span{:id => "model_#{model.id}_status", :class => model.status}
= haml :model_status, :locals=>{:model=>model}, :layout => false
- - if is_authorized(model.web_uri, "DELETE")
+ - if is_authorized(model.web_uri, "DELETE")
(
- %a{:href => url_for("/model/#{model.id}"), :id => "delete_#{model.id}", :class => 'delete'} delete
+ %a{:href => url_for("/model/#{model.id}"), :id => "delete_#{model.id}", :class => 'delete'}
+ - if model.status == "Completed"
+ delete
+ - else
+ stop
)
%dt Started:
%dd= model.created_at.strftime("%m/%d/%Y - %I:%M:%S%p")