aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/routes/show.html.slim
diff options
context:
space:
mode:
authorRobert2017-06-27 14:25:35 +0200
committerRobert2017-06-27 14:25:35 +0200
commitf20df3c08dfec0e3dda68401204f7d49470119a7 (patch)
tree4f27a34130d4ff044d48729f16d2dff154047ce5 /app/views/routes/show.html.slim
parent970954938043d8d73c4457ee2d91e22c0e422e65 (diff)
parenteabd56ff9f2c7979192e54b4ae11673f1cc778c1 (diff)
downloadchouette-core-f20df3c08dfec0e3dda68401204f7d49470119a7.tar.bz2
conflicts resolved
Diffstat (limited to 'app/views/routes/show.html.slim')
-rw-r--r--app/views/routes/show.html.slim17
1 files changed, 6 insertions, 11 deletions
diff --git a/app/views/routes/show.html.slim b/app/views/routes/show.html.slim
index 6d2d4e90d..92a5080ae 100644
--- a/app/views/routes/show.html.slim
+++ b/app/views/routes/show.html.slim
@@ -8,17 +8,12 @@
/ Below is secundary actions & optional contents (filters, ...)
.row.mb-sm
.col-lg-12.text-right
- - if @route_sp.any?
- = link_to t('journey_patterns.index.title'), [@referential, @line, @route, :journey_patterns_collection], class: 'btn btn-primary'
- - if @route.journey_patterns.present?
- = link_to t('vehicle_journeys.actions.index'), [@referential, @line, @route, :vehicle_journeys], class: 'btn btn-primary'
-
- = link_to t('vehicle_journey_exports.new.title'), referential_line_route_vehicle_journey_exports_path(@referential, @line, @route, format: :zip), class: 'btn btn-primary'
-
- - if policy(@route).destroy?
- = link_to referential_line_route_path(@referential, @line, @route), method: :delete, data: {confirm: t('routes.actions.destroy_confirm')}, class: 'btn btn-primary' do
- span.fa.fa-trash
- span = t('actions.destroy')
+ - @route.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