aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjpl2017-04-21 17:18:39 +0200
committerRobert2017-04-24 09:03:11 +0200
commitf676cb9fe59b3a3f38ca1feb8ae71bca8f127095 (patch)
tree0fce4e6b8186ac1e693cc90f7ef229c9fac7ea53
parenta5a6f717d8ad517b2f847c54e9b61cd92c1d0337 (diff)
downloadchouette-core-f676cb9fe59b3a3f38ca1feb8ae71bca8f127095.tar.bz2
Refs #3157: adding 'activated' column to line_referentials
-rw-r--r--app/views/lines/index.html.slim1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/lines/index.html.slim b/app/views/lines/index.html.slim
index ce4930d92..d7b6be5c8 100644
--- a/app/views/lines/index.html.slim
+++ b/app/views/lines/index.html.slim
@@ -20,6 +20,7 @@
{ 'Oid' => Proc.new { |n| n.objectid.local_id },
:number => 'number',
:name => 'name',
+ :deactivated => Proc.new{|n| n.deactivated? ? t('false') : t('true')},
'networks.name' => Proc.new { |n| n.try(:network).try(:name) },
'companies.name' => Proc.new { |n| n.try(:company).try(:name) },
:transport_mode => Proc.new { |n| n.transport_mode.nil? ? '-' : t("enumerize.line.transport_mode.#{n.try(:transport_mode)}") },