diff options
| author | jpl | 2017-05-09 15:29:59 +0200 |
|---|---|---|
| committer | jpl | 2017-05-09 15:29:59 +0200 |
| commit | 2b9e9414d03727d671e2e9cebb45b58ca8313aaa (patch) | |
| tree | 0a32d9b060e2b4a2385f75362c8782a9a910e9d7 /app | |
| parent | 04018a2857e5277ab1c180666169e86e64837619 (diff) | |
| download | chouette-core-2b9e9414d03727d671e2e9cebb45b58ca8313aaa.tar.bz2 | |
Refs #3325: adding oid on tt#index
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/time_tables/index.html.slim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/time_tables/index.html.slim b/app/views/time_tables/index.html.slim index 01b65653c..c17f96c85 100644 --- a/app/views/time_tables/index.html.slim +++ b/app/views/time_tables/index.html.slim @@ -15,7 +15,7 @@ .row .col-lg-12 = table_builder @time_tables, - { :color => Proc.new{|tt| tt.color ? content_tag(:span, '', class: 'fa fa-circle', style: "color:#{tt.color}") : '-' }, :comment => 'comment', + { 'OiD' => Proc.new { |n| n.objectid.local_id }, :color => Proc.new{|tt| tt.color ? content_tag(:span, '', class: 'fa fa-circle', style: "color:#{tt.color}") : '-' }, :comment => 'comment', "Période englobante" => Proc.new{ |tt| tt.bounding_dates.empty? ? '-' : t('bounding_dates', debut: l(tt.bounding_dates.min), end: l(tt.bounding_dates.max)) }, "Nombre de courses associées" => Proc.new{ |tt| tt.vehicle_journeys.count }, "Journées d'application" => Proc.new{ |tt| (%w(monday tuesday wednesday thursday friday saturday sunday).collect{|d| tt.send(d) ? t("calendars.days.#{d}") : '' }).reject{|a| a.empty?}.join(', ').html_safe }, |
