diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-12 07:17:46 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-12 07:17:46 +0000 |
commit | cab72628ff4a993e4e351e34e9bd0e159b8436ba (patch) | |
tree | 654f5c8aaa4897883079dcb295c86755743de429 /app | |
parent | c8e5dfef671e12f57f61f10c175d4e013d797596 (diff) | |
parent | 7606b93c26ca58211d2cfbbad2e051dcd0ea7c32 (diff) | |
download | gitlab-ce-cab72628ff4a993e4e351e34e9bd0e159b8436ba.tar.gz |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/labels_helper.rb | 19 | ||||
-rw-r--r-- | app/views/projects/labels/_form.html.haml | 2 |
2 files changed, 17 insertions, 4 deletions
diff --git a/app/helpers/labels_helper.rb b/app/helpers/labels_helper.rb index add0fef512e..49063491abf 100644 --- a/app/helpers/labels_helper.rb +++ b/app/helpers/labels_helper.rb @@ -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 diff --git a/app/views/projects/labels/_form.html.haml b/app/views/projects/labels/_form.html.haml index 72a01e1c271..c7380920b47 100644 --- a/app/views/projects/labels/_form.html.haml +++ b/app/views/projects/labels/_form.html.haml @@ -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 |