Commit 0602c5d0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Change default label color

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 433dac77
...@@ -4,7 +4,7 @@ module LabelsHelper ...@@ -4,7 +4,7 @@ module LabelsHelper
end end
def render_colored_label(label) def render_colored_label(label)
label_color = label.color || "#428bca" label_color = label.color || Label::DEFAULT_COLOR
text_color = text_color_for_bg(label_color) text_color = text_color_for_bg(label_color)
content_tag :span, class: 'label color-label', style: "background:#{label_color};color:#{text_color}" do content_tag :span, class: 'label color-label', style: "background:#{label_color};color:#{text_color}" do
......
class Label < ActiveRecord::Base class Label < ActiveRecord::Base
DEFAULT_COLOR = '#82C5FF' DEFAULT_COLOR = '#428bca'
belongs_to :project belongs_to :project
has_many :label_links, dependent: :destroy has_many :label_links, dependent: :destroy
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment