aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/referential_networks
diff options
context:
space:
mode:
authorTeddy Wing2018-01-23 15:38:08 +0100
committerZog2018-01-25 17:18:01 +0100
commit990ca5807a3237dc72f2b66630261118d81696bc (patch)
treee5e93d8b829de661f3dd141e59277049dd72be12 /app/views/referential_networks
parent6c969baf047a7c13b871c5fea41cda54e2b1f7fd (diff)
downloadchouette-core-990ca5807a3237dc72f2b66630261118d81696bc.tar.bz2
ReferentialNetworkDecorator: Convert to new action links interface
Need to add a `collection_name` method to `ReferentialNetworksController` because `ApplicationController#decorated_collection` can't infer the `Network` model from the controller name. Refs #5586
Diffstat (limited to 'app/views/referential_networks')
-rw-r--r--app/views/referential_networks/index.html.slim3
-rw-r--r--app/views/referential_networks/show.html.slim9
2 files changed, 0 insertions, 12 deletions
diff --git a/app/views/referential_networks/index.html.slim b/app/views/referential_networks/index.html.slim
index d556e7e5e..efa28dc05 100644
--- a/app/views/referential_networks/index.html.slim
+++ b/app/views/referential_networks/index.html.slim
@@ -1,7 +1,4 @@
- breadcrumb :referential_networks, @referential
-- if policy(Chouette::Network).create?
- - content_for :page_header_actions do
- = link_to(t('networks.actions.new'), new_referential_network_path(@referential), class: 'btn btn-default')
.page_content
.container-fluid
diff --git a/app/views/referential_networks/show.html.slim b/app/views/referential_networks/show.html.slim
index 7de304671..3d13d9211 100644
--- a/app/views/referential_networks/show.html.slim
+++ b/app/views/referential_networks/show.html.slim
@@ -1,14 +1,5 @@
- breadcrumb :referential_network, @referential, @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
/ PageContent
.page_content