diff options
author | mr <mr@mrautenberg.de> | 2011-01-18 17:12:54 +0100 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-01-18 17:12:54 +0100 |
commit | 8da8b742db45faeff56afc5b70d1ca263e4c0bb0 (patch) | |
tree | 7be1bcc6dbe6efcb61a55f03187c8306feeea6c6 /views/model.haml | |
parent | 318fb6deb86e326c3e6676c493fd8d327f38c1e1 (diff) |
fix javascript
Diffstat (limited to 'views/model.haml')
-rw-r--r-- | views/model.haml | 8 |
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") |