aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Peignier2017-11-26 22:04:33 +0100
committerAlban Peignier2017-11-26 22:04:33 +0100
commitf85b8adc96171703d0afc0a6ef8252087e767fa3 (patch)
treebeec9ee07a9b4b119b7fedb26f31e9a3e01a8a1c
parentab6f872e63db67756a4fe7ab25f11ddd97374ecc (diff)
downloadchouette-core-f85b8adc96171703d0afc0a6ef8252087e767fa3.tar.bz2
Use t('id_codif') and t('id_reflex') to prevent hardcoded strings. Refs #5081
-rw-r--r--app/views/lines/index.html.slim2
-rw-r--r--app/views/referential_companies/index.html.slim2
-rw-r--r--app/views/referential_networks/index.html.slim2
-rw-r--r--app/views/referential_stop_areas/show.html.slim2
-rw-r--r--app/views/routes/show.html.slim2
-rw-r--r--app/views/stop_areas/index.html.slim2
6 files changed, 6 insertions, 6 deletions
diff --git a/app/views/lines/index.html.slim b/app/views/lines/index.html.slim
index 7e3e1cc85..1fecae26d 100644
--- a/app/views/lines/index.html.slim
+++ b/app/views/lines/index.html.slim
@@ -20,7 +20,7 @@
= table_builder_2 @lines,
[ \
TableBuilderHelper::Column.new( \
- name: 'ID Codifligne', \
+ name: t('id_codif'), \
attribute: Proc.new { |n| n.objectid.local_id }, \
sortable: false \
), \
diff --git a/app/views/referential_companies/index.html.slim b/app/views/referential_companies/index.html.slim
index 9f5cd5d62..3348dc722 100644
--- a/app/views/referential_companies/index.html.slim
+++ b/app/views/referential_companies/index.html.slim
@@ -26,7 +26,7 @@
= table_builder_2 @companies,
[ \
TableBuilderHelper::Column.new( \
- name: 'ID Codifligne', \
+ name: t('id_codif'), \
attribute: Proc.new { |n| n.try(:objectid).try(:local_id) }, \
sortable: false \
), \
diff --git a/app/views/referential_networks/index.html.slim b/app/views/referential_networks/index.html.slim
index 57d3e7f1f..038cb0949 100644
--- a/app/views/referential_networks/index.html.slim
+++ b/app/views/referential_networks/index.html.slim
@@ -26,7 +26,7 @@
= table_builder_2 @networks,
[ \
TableBuilderHelper::Column.new( \
- name: 'ID Codifligne', \
+ name: t('id_codif'), \
attribute: Proc.new { |n| n.try(:objectid).try(:local_id) }, \
sortable: false \
),
diff --git a/app/views/referential_stop_areas/show.html.slim b/app/views/referential_stop_areas/show.html.slim
index b9a1c9899..7cc078ee0 100644
--- a/app/views/referential_stop_areas/show.html.slim
+++ b/app/views/referential_stop_areas/show.html.slim
@@ -19,7 +19,7 @@
.row
.col-lg-6.col-md-6.col-sm-12.col-xs-12
= definition_list t('metadatas'),
- { 'ID Reflex' => @stop_area.try(:user_objectid),
+ { t('id_reflex') => @stop_area.try(:user_objectid),
'Activé' => (@stop_area.deleted_at ? t('false') : t('true')),
@stop_area.human_attribute_name(:comment) => @stop_area.try(:comment),
@stop_area.human_attribute_name(:stop_area_type) => t("area_types.label.#{@stop_area.stop_area_type}"),
diff --git a/app/views/routes/show.html.slim b/app/views/routes/show.html.slim
index 1411a5502..2829d6cb9 100644
--- a/app/views/routes/show.html.slim
+++ b/app/views/routes/show.html.slim
@@ -38,7 +38,7 @@
= table_builder_2 @route_sp,
[ \
TableBuilderHelper::Column.new( \
- name: 'ID Reflex', \
+ name: t('id_reflex'), \
attribute: Proc.new { |s| s.try(:stop_area).try(:user_objectid) } \
), \
TableBuilderHelper::Column.new( \
diff --git a/app/views/stop_areas/index.html.slim b/app/views/stop_areas/index.html.slim
index 4e880f7a3..9de470939 100644
--- a/app/views/stop_areas/index.html.slim
+++ b/app/views/stop_areas/index.html.slim
@@ -20,7 +20,7 @@
= table_builder_2 @stop_areas,
[ \
TableBuilderHelper::Column.new( \
- name: 'ID Reflex', \
+ name: t('id_reflex'), \
attribute: Proc.new { |n| n.try(:user_objectid) }, \
sortable: false \
), \