aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/lines_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/lines_helper.rb')
-rw-r--r--app/helpers/lines_helper.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/lines_helper.rb b/app/helpers/lines_helper.rb
index 623d091ca..80073af62 100644
--- a/app/helpers/lines_helper.rb
+++ b/app/helpers/lines_helper.rb
@@ -16,4 +16,13 @@ module LinesHelper
def background_color(line)
line.color.blank? ? "white" : "#"+line.color
end
+
+ def number_style(line)
+ if colors?(line)
+ number_style = "color: #{text_color(line)}; background-color: #{background_color(line)};"
+ else
+ number_style = ""
+ end
+
+ end
end