summaryrefslogtreecommitdiff
path: root/app/helpers/ci/pipelines_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/ci/pipelines_helper.rb')
-rw-r--r--app/helpers/ci/pipelines_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/ci/pipelines_helper.rb b/app/helpers/ci/pipelines_helper.rb
index 309aa477108..8a6f0821dbb 100644
--- a/app/helpers/ci/pipelines_helper.rb
+++ b/app/helpers/ci/pipelines_helper.rb
@@ -26,6 +26,10 @@ module Ci
_("%{message} showing first %{warnings_displayed}") % { message: message, warnings_displayed: MAX_LIMIT }
end
+ def has_gitlab_ci?(project)
+ project.has_ci? && project.builds_enabled?
+ end
+
private
def warning_markdown(pipeline)