summaryrefslogtreecommitdiff
path: root/views/model.haml
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-01-18 17:12:54 +0100
committermr <mr@mrautenberg.de>2011-01-18 17:12:54 +0100
commit8da8b742db45faeff56afc5b70d1ca263e4c0bb0 (patch)
tree7be1bcc6dbe6efcb61a55f03187c8306feeea6c6 /views/model.haml
parent318fb6deb86e326c3e6676c493fd8d327f38c1e1 (diff)
fix javascript
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")