diff options
| author | Robert | 2017-12-20 16:32:36 +0100 |
|---|---|---|
| committer | Robert | 2017-12-20 16:32:36 +0100 |
| commit | 6b612725666e526679c867a5bb3a1d36398d94c0 (patch) | |
| tree | ec0e40746cfb5619b8137ce5434667d716d27df3 | |
| parent | 22ad4deea54b4021053015bb652ae6ef4c37e1c7 (diff) | |
| download | chouette-core-6b612725666e526679c867a5bb3a1d36398d94c0.tar.bz2 | |
Fixes: #5336@5h; (DB troubles)5336-spurious-buttons
| -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 |
