summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/model.haml9
1 files changed, 5 insertions, 4 deletions
diff --git a/views/model.haml b/views/model.haml
index d34079d..cd1682c 100644
--- a/views/model.haml
+++ b/views/model.haml
@@ -13,10 +13,11 @@
%dt Status:
%dd
%span{:id => "model_#{model.id}_status", :class => model.status}
- = haml :model_status, :locals=>{:model=>model}, :layout => false
- (
- %a{:href => url_for("/model/#{model.id}"), :id => "delete_#{model.id}", :class => 'delete'} delete
- )
+ = haml :model_status, :locals=>{:model=>model}, :layout => false
+ - if is_authorized(model.web_uri, "DELETE")
+ (
+ %a{:href => url_for("/model/#{model.id}"), :id => "delete_#{model.id}", :class => 'delete'} delete
+ )
%dt Started:
%dd= model.created_at.strftime("%m/%d/%Y - %I:%M:%S%p")
- if model.nr_compounds