Change default label color

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-08-15 10:20:12 +03:00
parent 433dac7799
commit 0602c5d027
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ module LabelsHelper
end
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)
content_tag :span, class: 'label color-label', style: "background:#{label_color};color:#{text_color}" do

View File

@ -1,5 +1,5 @@
class Label < ActiveRecord::Base
DEFAULT_COLOR = '#82C5FF'
DEFAULT_COLOR = '#428bca'
belongs_to :project
has_many :label_links, dependent: :destroy