diff options
| author | Alban Peignier | 2017-12-21 19:59:13 +0100 | 
|---|---|---|
| committer | Alban Peignier | 2017-12-21 19:59:13 +0100 | 
| commit | 780b7e4711e983e8f99e71bacc7eaf6973b214ce (patch) | |
| tree | 5ce8a0012d87aef41778b51f3fb133ee2819e88a | |
| parent | 4eadd762a0005e3e452aa757495e02dc244db3dc (diff) | |
| download | chouette-core-780b7e4711e983e8f99e71bacc7eaf6973b214ce.tar.bz2 | |
Change button type for opposite route link. Refs #53555355-add-button-to-opposite-itinerary-timetable
| -rw-r--r-- | app/views/vehicle_journeys/index.html.slim | 6 | ||||
| -rw-r--r-- | spec/views/vehicle_journeys/index.html.slim_spec.rb | 2 | 
2 files changed, 5 insertions, 3 deletions
| diff --git a/app/views/vehicle_journeys/index.html.slim b/app/views/vehicle_journeys/index.html.slim index f9df1f30c..4ad9d524d 100644 --- a/app/views/vehicle_journeys/index.html.slim +++ b/app/views/vehicle_journeys/index.html.slim @@ -1,8 +1,10 @@  - breadcrumb :vehicle_journeys, @referential, @route  - content_for :page_header_title, t('vehicle_journeys.index.title', route: @route.name)  - if @route.opposite_route.present? -  - content_for :page_header_actions do -    = link_to(t('routes.actions.opposite_route_timetable'), [@referential, @route.line, @route.opposite_route, :vehicle_journeys], class: 'btn btn-default') +  - content_for :page_header_content do +    .row.mb-sm +     .col-lg-12.text-right +       = link_to(t('routes.actions.opposite_route_timetable'), [@referential, @route.line, @route.opposite_route, :vehicle_journeys], class: 'btn btn-primary')  .page_content diff --git a/spec/views/vehicle_journeys/index.html.slim_spec.rb b/spec/views/vehicle_journeys/index.html.slim_spec.rb index 07fc2419d..7f0a9c5aa 100644 --- a/spec/views/vehicle_journeys/index.html.slim_spec.rb +++ b/spec/views/vehicle_journeys/index.html.slim_spec.rb @@ -24,7 +24,7 @@ describe "/vehicle_journeys/index", :type => :view do        href = view.referential_line_route_vehicle_journeys_path(referential, line, route.opposite_route)        oppposite_button_selector = "a[href=\"#{href}\"]" -      expect(view.content_for(:page_header_actions)).to have_selector oppposite_button_selector +      expect(view.content_for(:page_header_content)).to have_selector oppposite_button_selector      end    end  end | 
