aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/workbenches/show.html.slim6
-rw-r--r--config/locales/referentials.en.yml6
-rw-r--r--config/locales/referentials.fr.yml6
3 files changed, 13 insertions, 5 deletions
diff --git a/app/views/workbenches/show.html.slim b/app/views/workbenches/show.html.slim
index 33765e824..732e306c4 100644
--- a/app/views/workbenches/show.html.slim
+++ b/app/views/workbenches/show.html.slim
@@ -36,12 +36,12 @@
= new_pagination @wbench_refs, 'pull-right'
= table_builder @wbench_refs,
- { 'Nom du JDD' => 'name', 'Etat' => 'status',
+ { @wbench_refs.human_attribute_name(:name) => 'name', @wbench_refs.human_attribute_name(:status) => 'status',
'Organisation' => Proc.new {|w| w.organisation.name},
+ @wbench_refs.human_attribute_name(:validity_period) => Proc.new {|w| w.validity_period.nil? ? '-' : t('validity_range', debut: l(w.try(:validity_period).try(:begin), format: :short), end: l(w.try(:validity_period).try(:end), format: :short))},
'Nb lignes' => Proc.new {|w| w.lines.count},
- 'Plage de validité' => Proc.new {|w| w.validity_period.nil? ? '-' : t('validity_range', debut: l(w.try(:validity_period).try(:begin), format: :short), end: l(w.try(:validity_period).try(:end), format: :short))},
@wbench_refs.human_attribute_name(:updated_at) => Proc.new {|w| l(w.updated_at, format: :short)},
- 'Publié le' => ''},
+ @wbench_refs.human_attribute_name(:published_at) => ''},
[:show, :edit, :archive, :unarchive, :delete],
'table'
diff --git a/config/locales/referentials.en.yml b/config/locales/referentials.en.yml
index 995fdbcc7..805ac648c 100644
--- a/config/locales/referentials.en.yml
+++ b/config/locales/referentials.en.yml
@@ -42,7 +42,8 @@ en:
other: "Data spaces"
attributes:
referential:
- name: "Name"
+ name: "Data space name"
+ status: "Status"
slug: "Code"
prefix: "Neptune Object Id prefix"
projection_type: "Optional spatial reference system code (SRID)"
@@ -77,6 +78,9 @@ en:
data_format: "Favorite format for export"
timebands: "Time bands"
routing_constraint_zone: Zone de contrainte
+ validity_period: "Validity period"
+ updated_at: "Updated"
+ published_at: "Integrated"
formtastic:
titles:
referential:
diff --git a/config/locales/referentials.fr.yml b/config/locales/referentials.fr.yml
index 8a3e220bd..4b26b28ab 100644
--- a/config/locales/referentials.fr.yml
+++ b/config/locales/referentials.fr.yml
@@ -44,7 +44,8 @@ fr:
other: "Jeux de Données"
attributes:
referential:
- name: "Nom"
+ name: "Nom du JDD"
+ status: "Etat"
slug: "Code"
prefix: "Préfixe des identifiants Neptune"
projection_type: "Système de référence spatiale (SRID) optionnel"
@@ -78,6 +79,9 @@ fr:
data_format_restrictions: "Format d'export privilégié"
data_format: "Format d'export privilégié"
timebands: "Créneaux horaires"
+ validity_period: "Période de validité englobante"
+ updated_at: "Modifié"
+ published_at: "Intégré"
formtastic:
titles:
referential: