From e48ce179ed55b3a57ab494c63468c4c19aa249fc Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 17 Apr 2018 14:49:39 +0200 Subject: Lines#index: Remove 'new' link in cog menu We had been adding a 'new line' link in this menu below 'show' and 'edit'. But having this link here doesn't make any sense because the menu refers to a single object. Must have slipped through the cracks in the new decorator conversion. Refs #6506 --- app/decorators/line_decorator.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/decorators/line_decorator.rb b/app/decorators/line_decorator.rb index 0e7b6b9ae..077978c36 100644 --- a/app/decorators/line_decorator.rb +++ b/app/decorators/line_decorator.rb @@ -35,11 +35,6 @@ class LineDecorator < AF83::Decorator edit_action_link do |l| l.content {|l| l.primary? ? h.t('actions.edit') : h.t('lines.actions.edit') } end - - action_link on: :index, secondary: :index do |l| - l.content t('lines.actions.new') - l.href { h.new_line_referential_line_path(context[:line_referential]) } - end end ### the option :policy will automatically check for the corresponding method -- cgit v1.2.3