Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-05 10:54:23 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-02-11 12:29:14 +0300
commita2f61368f9d62cded366a3b8813969f66c4be4dd (patch)
treeeff20026cfcb3218f5da1778fc2fb8dbb16505af /app/controllers/ci
parent9bcc9ec14cf4f120b8e16d5c232f82e1fc5e2cfd (diff)
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.
Diffstat (limited to 'app/controllers/ci')
-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