aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjpl2017-03-08 17:59:26 +0100
committerjpl2017-03-08 17:59:26 +0100
commitb1351a0ce13e1c86584640a204ed8e1c32f5dd36 (patch)
tree08437413e69f3cd378dd545ec4b799a2700cbdd2
parent35941d9135b33b18a1cfc1463838cfc932c71b13 (diff)
downloadchouette-core-b1351a0ce13e1c86584640a204ed8e1c32f5dd36.tar.bz2
Fix toto
-rw-r--r--app/views/lines/show.html.slim7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/views/lines/show.html.slim b/app/views/lines/show.html.slim
index 9dbdd2bfe..0100b3c01 100644
--- a/app/views/lines/show.html.slim
+++ b/app/views/lines/show.html.slim
@@ -24,17 +24,12 @@
.container-fluid
.row
.col-lg-6.col-md-6.col-sm-12.col-xs-12
- p = 'toto'
- ul
- - @line.secondary_companies.each do |sc|
- li = sc.inspect
-
= definition_list t('metadatas'),
{ 'ID Codif' => @line.objectid.local_id,
'Activé' => (@line.deactivated? ? t('false') : t('true')),
@line.human_attribute_name(:network) => (@line.network.nil? ? t('lines.index.unset') : @line.network.name),
@line.human_attribute_name(:company) => (@line.company.nil? ? t('lines.index.unset') : @line.company.name),
- # 'Transporteur(s) secondaire(s)' => (@line.secondary_companies.nil? ? t('lines.index.unset') : @line.secondary_companies.pluck(:name)),
+ 'Transporteur(s) secondaire(s)' => (@line.secondary_companies.nil? ? t('lines.index.unset') : @line.secondary_companies.collect(&:name).join(', ')),
'Nom court' => @line.number,
'Code public' => (@line.registration_number ? @line.registration_number : '-'),
@line.human_attribute_name(:transport_mode) => (@line.transport_mode ? t("enumerize.line.transport_mode.#{@line.transport_mode}") : '-'),