diff options
| author | Xinhui | 2017-10-25 11:46:21 +0200 |
|---|---|---|
| committer | Xinhui | 2017-10-25 11:46:21 +0200 |
| commit | 1237184240df2fedf232a80bfcf7edc818eb3c5e (patch) | |
| tree | 7557436479de76b59571233c40a52f7c3a0226e1 /config | |
| parent | 2242858aa56a818f936a905b5b9e5f90926b725c (diff) | |
| download | chouette-core-1237184240df2fedf232a80bfcf7edc818eb3c5e.tar.bz2 | |
Breadcrumb for stop_areas - referential_companies
Diffstat (limited to 'config')
| -rw-r--r-- | config/breadcrumbs.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/config/breadcrumbs.rb b/config/breadcrumbs.rb index a0566e4be..66bead428 100644 --- a/config/breadcrumbs.rb +++ b/config/breadcrumbs.rb @@ -11,6 +11,16 @@ crumb :referential do |referential| parent :workbench, referential.workbench end +crumb :referential_companies do |referential| + link I18n.t('companies.index.title'), referential_companies_path(referential) + parent :referential, referential +end + +crumb :referential_company do |referential, company| + link company.name, referential_company_path(referential, company) + parent :referential_companies, referential +end + crumb :time_tables do |referential| link I18n.t('time_tables.index.title'), referential_time_tables_path(referential) parent :referential, referential @@ -63,6 +73,16 @@ crumb :stop_area_referential do |stop_area_referential| link I18n.t('stop_area_referentials.show.title'), stop_area_referential_path(stop_area_referential) end +crumb :stop_areas do |stop_area_referential| + link I18n.t('stop_areas.index.title'), stop_area_referential_stop_areas_path(stop_area_referential) + parent :stop_area_referential, stop_area_referential +end + +crumb :stop_area do |stop_area_referential, stop_area| + link stop_area.name, stop_area_referential_stop_area_path(stop_area_referential, stop_area) + parent :stop_areas, stop_area_referential +end + crumb :line_referential do |line_referential| link I18n.t('line_referentials.show.title'), line_referential_path(line_referential) end |
