From 4be4d378d15ad24c8ca0cd43befb25d94cd093de Mon Sep 17 00:00:00 2001 From: Zog Date: Wed, 20 Dec 2017 14:25:34 +0100 Subject: Refs #5340 @O.1h; Remove deletion link for lines ... ... In Referential#show --- app/decorators/referential_line_decorator.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/decorators/referential_line_decorator.rb b/app/decorators/referential_line_decorator.rb index 654f68bf5..dceb3e2a9 100644 --- a/app/decorators/referential_line_decorator.rb +++ b/app/decorators/referential_line_decorator.rb @@ -24,15 +24,6 @@ class ReferentialLineDecorator < Draper::Decorator ) ) - if h.policy(object).destroy? - links << Link.new( - content: h.destroy_link_content('actions.destroy'), - href: h.referential_line_path(context[:referential], object), - method: :delete, - data: { confirm: t('lines.actions.destroy_confirm') } - ) - end - if !object.hub_restricted? || (object.hub_restricted? && object.routes.size < 2) if h.policy(Chouette::Route).create? && -- cgit v1.2.3