aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjpl2017-04-11 15:34:17 +0200
committerjpl2017-04-11 15:34:17 +0200
commitfa17af2fbda1266af88cf05bcb7765abda745cb4 (patch)
tree37bb89c1d05095de4473bc410b94d4ea1ebfcad2
parent1e20cfdbbf8ae64528b6caa9d3853bea4356856f (diff)
downloadchouette-core-fa17af2fbda1266af88cf05bcb7765abda745cb4.tar.bz2
Refs #2909: adding colors results to table col on tt#index
-rw-r--r--app/views/time_tables/index.html.slim2
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],
[],