From fa17af2fbda1266af88cf05bcb7765abda745cb4 Mon Sep 17 00:00:00 2001 From: jpl Date: Tue, 11 Apr 2017 15:34:17 +0200 Subject: Refs #2909: adding colors results to table col on tt#index --- app/views/time_tables/index.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') 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], [], -- cgit v1.2.3