diff options
| author | Teddy Wing | 2018-01-23 14:57:07 +0100 | 
|---|---|---|
| committer | Zog | 2018-01-25 17:18:01 +0100 | 
| commit | 6c969baf047a7c13b871c5fea41cda54e2b1f7fd (patch) | |
| tree | 074efafff1a6be07a8dbb64e0f2aed85f1afa7df /app/views/networks | |
| parent | 4e034f42107a2016db3a032d3c0cd1a5f8e43635 (diff) | |
| download | chouette-core-6c969baf047a7c13b871c5fea41cda54e2b1f7fd.tar.bz2 | |
NetworkDecorator: Convert to new action links interface
And remove the "create" link from the gear menu and header links of the
:show page because it didn't make sense there. Leave a "create" link on
the index page though.
Refs #5586
Diffstat (limited to 'app/views/networks')
| -rw-r--r-- | app/views/networks/index.html.slim | 3 | ||||
| -rw-r--r-- | app/views/networks/show.html.slim | 10 | 
2 files changed, 1 insertions, 12 deletions
| diff --git a/app/views/networks/index.html.slim b/app/views/networks/index.html.slim index b13c73e9e..6aeb140cc 100644 --- a/app/views/networks/index.html.slim +++ b/app/views/networks/index.html.slim @@ -1,7 +1,4 @@  - breadcrumb :networks, @line_referential -- content_for :page_header_actions do -  - if policy(Chouette::Network).create? -    = link_to(t('networks.actions.new'), new_line_referential_network_path(@line_referential), class: 'btn btn-primary')  .page_content    .container-fluid diff --git a/app/views/networks/show.html.slim b/app/views/networks/show.html.slim index 8e40a13b2..527fb8d5b 100644 --- a/app/views/networks/show.html.slim +++ b/app/views/networks/show.html.slim @@ -1,14 +1,6 @@  - breadcrumb :network, @network  - page_header_content_for @network -- content_for :page_header_content do -  .row -    .col-lg-12.text-right.mb-sm -      - @network.action_links.each do |link| -        = link_to link.href, -            method: link.method, -            data: link.data, -            class: 'btn btn-primary' do -              = link.content +  .page_content    .container-fluid      .row | 
