diff options
| -rw-r--r-- | app/decorators/line_decorator.rb | 20 | ||||
| -rw-r--r-- | app/views/lines/show.html.slim | 2 | 
2 files changed, 2 insertions, 20 deletions
| diff --git a/app/decorators/line_decorator.rb b/app/decorators/line_decorator.rb index ede670cbd..213599da4 100644 --- a/app/decorators/line_decorator.rb +++ b/app/decorators/line_decorator.rb @@ -21,26 +21,6 @@ class LineDecorator < Draper::Decorator        href: [context[:line_referential], object.company]      ) -    if h.policy(Chouette::Line).create? && -      context[:line_referential].organisations.include?( -        context[:current_organisation] -      ) -      links << Link.new( -        content: h.t('lines.actions.edit'), -        href: h.edit_line_referential_line_path(context[:line_referential], object.id) -      ) -    end - -    if h.policy(Chouette::Line).create? && -      context[:line_referential].organisations.include?( -        context[:current_organisation] -      ) -      links << Link.new( -        content: h.t('lines.actions.new'), -        href: h.new_line_referential_line_path(context[:line_referential]) -      ) -    end -      if h.policy(object).destroy?        links << Link.new(          content: h.destroy_link_content('lines.actions.destroy'), diff --git a/app/views/lines/show.html.slim b/app/views/lines/show.html.slim index d62fe30d6..61f1e513f 100644 --- a/app/views/lines/show.html.slim +++ b/app/views/lines/show.html.slim @@ -9,7 +9,9 @@              class: 'btn btn-primary' do                = link.content +hr  - page_header_content_for @line +hr  .page_content    .container-fluid | 
