aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/routing_constraint_zones
diff options
context:
space:
mode:
authorTeddy Wing2018-01-24 13:49:29 +0100
committerZog2018-01-25 17:18:01 +0100
commit5e41dbed021522331532eb0151ac441553be2d13 (patch)
tree9fdb81088c7fb402717b5a67823ceb52e8e8a3e4 /app/views/routing_constraint_zones
parent8957ab3e9b28e7548d3a4028308558bec1403c33 (diff)
downloadchouette-core-5e41dbed021522331532eb0151ac441553be2d13.tar.bz2
RoutingConstraintZoneDecorator: Convert action links to new interface
Refs #5586
Diffstat (limited to 'app/views/routing_constraint_zones')
-rw-r--r--app/views/routing_constraint_zones/index.html.slim3
-rw-r--r--app/views/routing_constraint_zones/show.html.slim9
2 files changed, 0 insertions, 12 deletions
diff --git a/app/views/routing_constraint_zones/index.html.slim b/app/views/routing_constraint_zones/index.html.slim
index 7c54fca68..2f67b467e 100644
--- a/app/views/routing_constraint_zones/index.html.slim
+++ b/app/views/routing_constraint_zones/index.html.slim
@@ -1,7 +1,4 @@
- breadcrumb :routing_constraint_zones, @referential, @line
-- content_for :page_header_actions do
- - if (policy(Chouette::RoutingConstraintZone).create? && @referential.organisation == current_organisation)
- = link_to(t('actions.new'), new_referential_line_routing_constraint_zone_path(@referential, @line), class: 'btn btn-primary')
.page_content
.container-fluid
diff --git a/app/views/routing_constraint_zones/show.html.slim b/app/views/routing_constraint_zones/show.html.slim
index 3d1988545..8c8e9b17a 100644
--- a/app/views/routing_constraint_zones/show.html.slim
+++ b/app/views/routing_constraint_zones/show.html.slim
@@ -1,14 +1,5 @@
- breadcrumb :routing_constraint_zone, @referential, @line, @routing_constraint_zone
- page_header_content_for @routing_constraint_zone
-- content_for :page_header_content do
- .row
- .col-lg-12.text-right.mb-sm
- - @routing_constraint_zone.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