aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcedricnjanga2018-03-27 22:20:30 -0700
committercedricnjanga2018-03-29 11:13:38 -0700
commit7c84012ffcdba8cd2d7a6db93633a97e4ec1699d (patch)
treec9dc8a0550c635a9e4178ef5e949c8c24964bf96
parent6b5e24aac617da8461919237c8495a6054b29a9b (diff)
downloadchouette-core-7c84012ffcdba8cd2d7a6db93633a97e4ec1699d.tar.bz2
Refs #6156 Update dashboard translations
-rw-r--r--app/views/dashboards/_dashboard.html.slim7
-rw-r--r--app/views/stif/dashboards/_dashboard.html.slim6
-rw-r--r--config/locales/dashboard.en.yml2
-rw-r--r--config/locales/dashboard.fr.yml2
4 files changed, 11 insertions, 6 deletions
diff --git a/app/views/dashboards/_dashboard.html.slim b/app/views/dashboards/_dashboard.html.slim
index 2f0791f50..e1be3df4a 100644
--- a/app/views/dashboards/_dashboard.html.slim
+++ b/app/views/dashboards/_dashboard.html.slim
@@ -5,7 +5,7 @@
.panel-heading
h3.panel-title.with_actions
div
- = link_to workbench.name, workbench_path(workbench)
+ = link_to t('dashboards.workbench.title', organisation: workbench.organisation.name), workbench_path(workbench)
span.badge.ml-xs = workbench.referentials.count if workbench.referentials.present?
div
@@ -23,6 +23,7 @@
.panel-heading
h3.panel-title.with_actions
= link_to I18n.t("activerecord.models.calendar", count: workbench.calendars.size), workgroup_calendars_path(workbench.workgroup)
+ span.badge.ml-xs = workbench.calendars.count if workbench.calendars.present?
div
= link_to '', workgroup_calendars_path(workbench.workgroup), class: ' fa fa-chevron-right pull-right'
- if workbench.calendars.present?
@@ -39,7 +40,7 @@
- @dashboard.current_organisation.stop_area_referentials.each do |referential|
.panel-heading
h3.panel-title
- = referential.name
+ = t('dashboards.stop_area_referentials.title')
.list-group
= link_to Chouette::StopArea.model_name.human.pluralize.capitalize, stop_area_referential_stop_areas_path(referential), class: 'list-group-item'
@@ -47,7 +48,7 @@
- @dashboard.current_organisation.line_referentials.all.each do |referential|
.panel-heading
h3.panel-title
- = referential.name
+ = t('dashboards.line_referentials.title')
.list-group
= link_to Chouette::Line.model_name.human.pluralize.capitalize, line_referential_lines_path(referential), class: 'list-group-item'
= link_to Chouette::Company.model_name.human.pluralize.capitalize, line_referential_companies_path(referential), class: 'list-group-item'
diff --git a/app/views/stif/dashboards/_dashboard.html.slim b/app/views/stif/dashboards/_dashboard.html.slim
index e0f754fd4..a719711c7 100644
--- a/app/views/stif/dashboards/_dashboard.html.slim
+++ b/app/views/stif/dashboards/_dashboard.html.slim
@@ -1,6 +1,6 @@
-.row
- .col-lg-12
- h2.content_header = t('.subtitle')
+/ .row
+/ .col-lg-12
+/ h2.content_header = t('.subtitle')
.row
.col-lg-6.col-md-6.col-sm-6.col-xs-12
diff --git a/config/locales/dashboard.en.yml b/config/locales/dashboard.en.yml
index 8d46ff7aa..361a3cf2b 100644
--- a/config/locales/dashboard.en.yml
+++ b/config/locales/dashboard.en.yml
@@ -2,6 +2,8 @@ en:
dashboards:
show:
title: "Dashboard %{organisation}"
+ workbench:
+ title: Transport offer %{organisation}
calendars:
title: Calendars
none: No calendar created
diff --git a/config/locales/dashboard.fr.yml b/config/locales/dashboard.fr.yml
index d0aa36d61..1e1c095b1 100644
--- a/config/locales/dashboard.fr.yml
+++ b/config/locales/dashboard.fr.yml
@@ -2,6 +2,8 @@ fr:
dashboards:
show:
title: "Tableau de bord %{organisation}"
+ workbench:
+ title: Offre de transport %{organisation}
calendars:
title: Modèles de calendrier
none: Aucun calendrier défini