aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLuc Donnet2017-10-13 15:29:36 +0200
committerGitHub2017-10-13 15:29:36 +0200
commit16e9fe5e4e75f2df98f0da371062d572fa45a48b (patch)
treeae7fbcdf63803d77dfcf578348c03f617f265094 /app
parenta8fd113096d1cf9e88685106b0e45fff2c4a5aed (diff)
parent3b4563e9f3ed21d98255713cefd2e290c5a364bd (diff)
downloadchouette-core-16e9fe5e4e75f2df98f0da371062d572fa45a48b.tar.bz2
Merge pull request #88 from af83/4698-table_pages_title_refactoring
Refactoring tables titles for routes
Diffstat (limited to 'app')
-rw-r--r--app/views/referential_lines/show.html.slim3
-rw-r--r--app/views/routes/show.html.slim3
2 files changed, 4 insertions, 2 deletions
diff --git a/app/views/referential_lines/show.html.slim b/app/views/referential_lines/show.html.slim
index ffcb9b5e0..df3c285ee 100644
--- a/app/views/referential_lines/show.html.slim
+++ b/app/views/referential_lines/show.html.slim
@@ -1,6 +1,6 @@
/ PageHeader
= pageheader 'ligne',
- @line.name,
+ t('lines.index.line', line: @line.name),
'',
t('last_update', time: l(@line.updated_at, format: :short)) do
@@ -34,6 +34,7 @@
.row
.col-lg-12
+ .h3 = t('lines.show.routes.title')
- if params[:q].present? or @routes.any?
.row
.col-lg-12
diff --git a/app/views/routes/show.html.slim b/app/views/routes/show.html.slim
index 83ee62386..6bd3451cd 100644
--- a/app/views/routes/show.html.slim
+++ b/app/views/routes/show.html.slim
@@ -1,6 +1,6 @@
/ PageHeader
= pageheader 'itineraire',
- @route.name,
+ t('routes.index.title', route: @route.name),
'',
t('last_update', time: l(@route.updated_at, format: :short)),
(policy(@route).edit? ? link_to(t('actions.edit'), edit_referential_line_route_path(@referential, @line, @route), class: 'btn btn-default') : '') do
@@ -32,6 +32,7 @@
.row
.col-lg-12
+ .h3 = t('routes.show.stop_areas.title')
- if @route_sp.any?
= table_builder_2 @route_sp,
[ \