BigW Consortium Gitlab

Change default label color

parent 433dac77
......@@ -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
......
class Label < ActiveRecord::Base
DEFAULT_COLOR = '#82C5FF'
DEFAULT_COLOR = '#428bca'
belongs_to :project
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