aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXinhui2017-12-01 15:52:39 +0100
committerXinhui2017-12-01 15:52:45 +0100
commit9a77e70223a9aebb278ee8ace6fc79a021c3aa95 (patch)
treec2ed9c0b886914569cc9f81bc634eb9665b64ed4
parent0f83730c05bddbdf1ad0ba20ef9990289ecfdb37 (diff)
downloadchouette-core-9a77e70223a9aebb278ee8ace6fc79a021c3aa95.tar.bz2
Fix page title on journey_patterns_collection#show
Refs #5152
-rw-r--r--app/views/journey_patterns_collections/show.html.slim1
-rw-r--r--config/locales/journey_patterns.en.yml2
-rw-r--r--config/locales/journey_patterns.fr.yml2
3 files changed, 3 insertions, 2 deletions
diff --git a/app/views/journey_patterns_collections/show.html.slim b/app/views/journey_patterns_collections/show.html.slim
index d53403ff3..4cb968f22 100644
--- a/app/views/journey_patterns_collections/show.html.slim
+++ b/app/views/journey_patterns_collections/show.html.slim
@@ -1,5 +1,6 @@
- breadcrumb :journey_patterns, @referential, @route
- page_header_content_for @route
+- content_for :page_header_title, t('journey_patterns.index.title', route_name: @route.name)
- @journey_patterns.each do |jp|
- jp.errors.each do |error_message|
diff --git a/config/locales/journey_patterns.en.yml b/config/locales/journey_patterns.en.yml
index effac5569..6116a1b26 100644
--- a/config/locales/journey_patterns.en.yml
+++ b/config/locales/journey_patterns.en.yml
@@ -19,7 +19,7 @@ en:
title: "Journey Pattern %{journey_pattern}"
stop_points: "Stop point on journey pattern list"
index:
- title: "Journey Patterns"
+ title: "Journey Patterns of %{route_name}"
form:
warning: "Be careful, selection is also applied to the %{count} vehicle journeys associated to this journey pattern"
activerecord:
diff --git a/config/locales/journey_patterns.fr.yml b/config/locales/journey_patterns.fr.yml
index 23c43e2a7..3d19bd049 100644
--- a/config/locales/journey_patterns.fr.yml
+++ b/config/locales/journey_patterns.fr.yml
@@ -19,7 +19,7 @@ fr:
title: "Mission %{journey_pattern}"
stop_points: "Liste des arrĂȘts de la mission"
index:
- title: "Missions"
+ title: "Missions de %{route_name}"
form:
warning: "Attention, la sélection s'applique aussi aux %{count} courses de la mission"
activerecord: