diff options
| author | Luc Donnet | 2018-02-01 15:10:51 +0100 |
|---|---|---|
| committer | Luc Donnet | 2018-02-07 11:34:49 +0100 |
| commit | 274cbdc6dce4164da61902f216d8cece2ce52c5e (patch) | |
| tree | 2a476a8f8ba9bb1ad04440a1ea75ff0872c1d088 | |
| parent | de6ef9294f7a1890d6f9de479e965d571233a96e (diff) | |
| download | chouette-core-274cbdc6dce4164da61902f216d8cece2ce52c5e.tar.bz2 | |
Begin workbench output show refactoring to use stif guidelines
| -rw-r--r-- | app/views/workbench_outputs/show.html.slim | 6 | ||||
| -rw-r--r-- | config/locales/workbench_outputs.en.yml | 7 | ||||
| -rw-r--r-- | config/locales/workbench_outputs.fr.yml | 7 | ||||
| -rw-r--r-- | config/locales/workbenches.fr.yml | 4 |
4 files changed, 15 insertions, 9 deletions
diff --git a/app/views/workbench_outputs/show.html.slim b/app/views/workbench_outputs/show.html.slim index 4f71fb7ef..a9e106dbb 100644 --- a/app/views/workbench_outputs/show.html.slim +++ b/app/views/workbench_outputs/show.html.slim @@ -26,11 +26,7 @@ end \ ), \ TableBuilderHelper::Column.new( \ - key: :started_at, \ - attribute: Proc.new { |n| l(n.started_at, format: :long) if n.started_at }, \ - ), \ - TableBuilderHelper::Column.new( \ - key: :ended_at, \ + name: t(".table_headers.ended_at"), \ attribute: Proc.new { |n| l(n.ended_at, format: :long) if n.ended_at }, \ ), \ TableBuilderHelper::Column.new( \ diff --git a/config/locales/workbench_outputs.en.yml b/config/locales/workbench_outputs.en.yml new file mode 100644 index 000000000..05cf52d0e --- /dev/null +++ b/config/locales/workbench_outputs.en.yml @@ -0,0 +1,7 @@ +en: + workbench_outputs: + show: + title: "Finalisations de l'offre" + see_current_output: "Voir l'Offre actuelle" + table_headers: + ended_at: "Offer created date" diff --git a/config/locales/workbench_outputs.fr.yml b/config/locales/workbench_outputs.fr.yml new file mode 100644 index 000000000..560888c54 --- /dev/null +++ b/config/locales/workbench_outputs.fr.yml @@ -0,0 +1,7 @@ +fr: + workbench_outputs: + show: + title: "Finalisations de l'offre" + see_current_output: "Voir l'Offre actuelle" + table_headers: + ended_at: "Date et heure de création de l'offre" diff --git a/config/locales/workbenches.fr.yml b/config/locales/workbenches.fr.yml index 58fc8e416..e7a392e66 100644 --- a/config/locales/workbenches.fr.yml +++ b/config/locales/workbenches.fr.yml @@ -8,10 +8,6 @@ fr: other: "#{count} jeux de données dans cet espace de travail" actions: show_output: "Finaliser l'Offre" - workbench_outputs: - show: - title: "Finalisations de l'offre" - see_current_output: "Voir l'Offre actuelle" activerecord: models: workbench: |
