Merge branch 'master' into 'master'

Adds new label color suggestions

This adds a bunch of label color suggestions

![labels2](https://gitlab.com/uploads/gitlab-org/gitlab-ce/ac1a207575/labels2.png)
![labels1](https://gitlab.com/uploads/benny/gitlab-ce/d47fbecc16/labels1.png)

See merge request !289
This commit is contained in:
Dmitriy Zaporozhets
2015-02-12 07:17:46 +00:00
2 changed files with 17 additions and 4 deletions
+16 -3
View File
@@ -14,14 +14,27 @@ module LabelsHelper
def suggested_colors
[
'#D9534F',
'#F0AD4E',
'#0033CC',
'#428BCA',
'#44AD8E',
'#A8D695',
'#5CB85C',
'#69D100',
'#004E00',
'#34495E',
'#7F8C8D',
'#A295D6',
'#5843AD',
'#8E44AD',
'#FFECDB'
'#FFECDB',
'#AD4363',
'#D10069',
'#CC0033',
'#FF0000',
'#D9534F',
'#D1D100',
'#F0AD4E',
'#AD8D43'
]
end
+1 -1
View File
@@ -16,7 +16,7 @@
.col-sm-10
.input-group
.input-group-addon.label-color-preview  
= f.text_field :color, placeholder: "#AA33EE", class: "form-control"
= f.color_field :color, placeholder: "#AA33EE", class: "form-control"
.help-block
6 character hex values starting with a # sign.
%br