From 451f6f56d6c22a9b55f8466a271857e31d8052b1 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 9 Oct 2017 11:07:28 +0200 Subject: Refactoring tables titles for routes --- app/views/referential_lines/show.html.slim | 3 ++- app/views/routes/show.html.slim | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/views/referential_lines/show.html.slim b/app/views/referential_lines/show.html.slim index ffcb9b5e0..d50f51335 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.name, '', t('last_update', time: l(@line.updated_at, format: :short)) do @@ -34,6 +34,7 @@ .row .col-lg-12 + .h3 = t('routes.show.itineraries') - 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 edc2d254b..be3b526cf 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.itinerarie') + " " + @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.itineraries') - if @route_sp.any? = table_builder_2 @route_sp, [ \ -- cgit v1.2.3