From c78b4848f74418ab3fe2e85c1d71c3c702962125 Mon Sep 17 00:00:00 2001 From: Luc Donnet Date: Sun, 20 Nov 2016 16:42:38 +0100 Subject: Delete unused links for route show --- app/views/routes/show.html.slim | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/routes/show.html.slim b/app/views/routes/show.html.slim index 968fc5795..cfd71e16a 100644 --- a/app/views/routes/show.html.slim +++ b/app/views/routes/show.html.slim @@ -83,14 +83,14 @@ p.after_map - if @route.stop_points.size >= 2 li = link_to t('journey_patterns.actions.new'), new_referential_line_route_journey_pattern_path(@referential, @line, @route), class: 'add' - - if @route.stop_points.present? - li = link_to t('routes.actions.edit_boarding_alighting'), edit_boarding_alighting_referential_line_route_path(@referential, @line, @route), class: 'edit' + / - if @route.stop_points.present? + / li = link_to t('routes.actions.edit_boarding_alighting'), edit_boarding_alighting_referential_line_route_path(@referential, @line, @route), class: 'edit' - if @route.journey_patterns.size > 0 li = link_to t('vehicle_journeys.actions.index'), [@referential, @line, @route, :vehicle_journeys], class: 'clock' - ul.actions - li = link_to t('vehicle_journey_imports.new.title'), new_referential_line_route_vehicle_journey_import_path( @referential, @line, @route ), class: 'import' - li = link_to t('vehicle_journey_exports.new.title'), referential_line_route_vehicle_journey_exports_path(@referential, @line, @route, format: :zip), class: 'export' + / ul.actions + / li = link_to t('vehicle_journey_imports.new.title'), new_referential_line_route_vehicle_journey_import_path( @referential, @line, @route ), class: 'import' + / li = link_to t('vehicle_journey_exports.new.title'), referential_line_route_vehicle_journey_exports_path(@referential, @line, @route, format: :zip), class: 'export' = creation_tag(@route) -- cgit v1.2.3