summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-05 08:54:23 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-11 10:29:14 +0100
commita2f61368f9d62cded366a3b8813969f66c4be4dd (patch)
treeeff20026cfcb3218f5da1778fc2fb8dbb16505af
parent9bcc9ec14cf4f120b8e16d5c232f82e1fc5e2cfd (diff)
downloadgitlab-ce-a2f61368f9d62cded366a3b8813969f66c4be4dd.tar.gz
Add deprecation warning for old CI status badge action
We keep this only for backwards compatibility with projects that have been migrated from GitLab CI. New project badge will go elsewhere.
-rw-r--r--app/controllers/ci/projects_controller.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/ci/projects_controller.rb b/app/controllers/ci/projects_controller.rb
index 711c2847d5e..7838994433e 100644
--- a/app/controllers/ci/projects_controller.rb
+++ b/app/controllers/ci/projects_controller.rb
@@ -12,9 +12,12 @@ module Ci
# Project status badge
# Image with build status for sha or ref
+ #
+ # This action in DEPRECATED, this is here only for backwards compatibility
+ # with projects migrated from GitLab CI.
+ #
def badge
image = Ci::ImageForBuildService.new.execute(@project, params)
-
send_file image.path, filename: image.name, disposition: 'inline', type:"image/svg+xml"
end