diff options
| author | Xinhui | 2017-10-25 12:19:57 +0200 |
|---|---|---|
| committer | Xinhui | 2017-10-25 12:19:57 +0200 |
| commit | a83fbdaab1c9a6c73badf3e25dcfab8701d555b5 (patch) | |
| tree | ac319b44785c4cc6b65d10f96401a875e7780d88 /app | |
| parent | b7a4ff1063832600fd207a42fbe9eaaef761e7b4 (diff) | |
| download | chouette-core-a83fbdaab1c9a6c73badf3e25dcfab8701d555b5.tar.bz2 | |
Breadcrumb for route_section
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/route_sections_controller.rb | 5 | ||||
| -rw-r--r-- | app/views/route_sections/index.html.slim | 3 | ||||
| -rw-r--r-- | app/views/route_sections/new.html.slim | 3 | ||||
| -rw-r--r-- | app/views/route_sections/show.html.slim | 3 |
4 files changed, 6 insertions, 8 deletions
diff --git a/app/controllers/route_sections_controller.rb b/app/controllers/route_sections_controller.rb index c1aaf732e..03d6cf176 100644 --- a/app/controllers/route_sections_controller.rb +++ b/app/controllers/route_sections_controller.rb @@ -8,14 +8,9 @@ class RouteSectionsController < ChouetteController belongs_to :referential before_action :save_return_to_path, only: [:edit, :create_to_edit] - before_action ->(controller) { build_breadcrumb controller.action_name } helper_method :search - def index - index! - end - def new @stop_areas = referential.stop_areas.with_geometry.order :name new! diff --git a/app/views/route_sections/index.html.slim b/app/views/route_sections/index.html.slim index 2d36be67a..c459af73c 100644 --- a/app/views/route_sections/index.html.slim +++ b/app/views/route_sections/index.html.slim @@ -1,3 +1,4 @@ +- breadcrumb :referential_route_sections, @referential = title_tag t('.title') = form_for search, url: referential_route_sections_path(@referential), method: :get, class: 'form-inline' do |form| @@ -45,4 +46,4 @@ table.table.table-hover.table-striped = link_to t('.actions.destroy'), referential_route_section_path(@referential, route_section), method: :delete, data: { confirm: t('route_sections.actions.destroy_confirm') }, class: 'remove' .pagination - = will_paginate @route_sections, :container => false, renderer: RemoteBootstrapPaginationLinkRenderer
\ No newline at end of file + = will_paginate @route_sections, :container => false, renderer: RemoteBootstrapPaginationLinkRenderer diff --git a/app/views/route_sections/new.html.slim b/app/views/route_sections/new.html.slim index a41db0254..79f4cda2b 100644 --- a/app/views/route_sections/new.html.slim +++ b/app/views/route_sections/new.html.slim @@ -1,3 +1,4 @@ +- breadcrumb :referential_route_sections, @referential = title_tag t('route_sections.new.title') -== render 'form'
\ No newline at end of file +== render 'form' diff --git a/app/views/route_sections/show.html.slim b/app/views/route_sections/show.html.slim index f02f7de80..afd0ed0d6 100644 --- a/app/views/route_sections/show.html.slim +++ b/app/views/route_sections/show.html.slim @@ -1,3 +1,4 @@ +- breadcrumb :referential_route_section, @referential, @route_section = title_tag t('.title') .route_section @@ -23,4 +24,4 @@ li = link_to t('route_sections.actions.destroy'), referential_route_section_path(@referential, @route_section), :method => :delete, :data => {:confirm => t('route_sections.actions.destroy_confirm')}, class: 'remove' - = creation_tag(@route_section)
\ No newline at end of file + = creation_tag(@route_section) |
