diff options
| author | Robert Speicher <robert@gitlab.com> | 2016-04-21 23:13:38 +0000 |
|---|---|---|
| committer | Robert Speicher <robert@gitlab.com> | 2016-04-21 23:13:38 +0000 |
| commit | aea97991977bc2af27ce93f5b5e2bd9b7735999e (patch) | |
| tree | 40d819d8172a5e33d1cb8b17eb2298f3701be397 /app/controllers/projects | |
| parent | a4510729a67ce528ab00d27225c2140eebd80ed8 (diff) | |
| parent | c079ae273c3fcab6f73b000a0e89d4faf233a9d9 (diff) | |
| download | gitlab-ce-aea97991977bc2af27ce93f5b5e2bd9b7735999e.tar.gz | |
Merge branch 'label-text-color-sidebar' into 'master'
Fixes text color on labels in sidebar
Previously the labels in the sidebar would just have `#FFF` text color which could cause problems with a light background color.
With this, the text color comes from the JSON.
See merge request !3846
Diffstat (limited to 'app/controllers/projects')
| -rw-r--r-- | app/controllers/projects/issues_controller.rb | 2 | ||||
| -rw-r--r-- | app/controllers/projects/merge_requests_controller.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/issues_controller.rb b/app/controllers/projects/issues_controller.rb index 9241afdad0a..18e28fc49fe 100644 --- a/app/controllers/projects/issues_controller.rb +++ b/app/controllers/projects/issues_controller.rb @@ -109,7 +109,7 @@ class Projects::IssuesController < Projects::ApplicationController end end format.json do - render json: @issue.to_json(include: [:milestone, :labels, assignee: { methods: :avatar_url }]) + render json: @issue.to_json(include: [:milestone, labels: { methods: :text_color }, assignee: { methods: :avatar_url }]) end end end diff --git a/app/controllers/projects/merge_requests_controller.rb b/app/controllers/projects/merge_requests_controller.rb index 28ef83b077f..a57fd2d4e34 100644 --- a/app/controllers/projects/merge_requests_controller.rb +++ b/app/controllers/projects/merge_requests_controller.rb @@ -154,7 +154,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController @merge_request.target_project, @merge_request]) end format.json do - render json: @merge_request.to_json(include: [:milestone, :labels, assignee: { methods: :avatar_url }]) + render json: @merge_request.to_json(include: [:milestone, labels: { methods: :text_color }, assignee: { methods: :avatar_url }]) end end else |
