diff options
| author | jpl | 2017-04-11 15:34:17 +0200 | 
|---|---|---|
| committer | jpl | 2017-04-11 15:34:17 +0200 | 
| commit | fa17af2fbda1266af88cf05bcb7765abda745cb4 (patch) | |
| tree | 37bb89c1d05095de4473bc410b94d4ea1ebfcad2 | |
| parent | 1e20cfdbbf8ae64528b6caa9d3853bea4356856f (diff) | |
| download | chouette-core-fa17af2fbda1266af88cf05bcb7765abda745cb4.tar.bz2 | |
Refs #2909: adding colors results to table col on tt#index
| -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 ef835c956..84ad539c2 100644 --- a/app/views/time_tables/index.html.slim +++ b/app/views/time_tables/index.html.slim @@ -37,7 +37,7 @@        .row          .col-lg-12            = table_builder @time_tables, -            { :comment => 'comment', :color => '', +            { :comment => 'comment', :color => Proc.new{|tt| tt.color ? content_tag(:span, '', class: 'fa fa-circle', style: "color:#{tt.color}") : '-' },                "Période de validité englobante" => Proc.new{ |tt| tt.bounding_dates.empty? ? '-' : t('bounding_dates', debut: l(tt.bounding_dates.min), end: l(tt.bounding_dates.max)) }, :calendar => Proc.new{ |tt| tt.calendar ? tt.calendar.try(:name) : '-' }, :updated_at => Proc.new {|tt| l(tt.updated_at, format: :short)} },              [:show, :edit, :duplicate, :delete],              [], | 
