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:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-10 02:26:13 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-10 02:26:13 +0300
commitfe2137d871b978033007a3375cf6f1edf0f04cd4 (patch)
treee75b2aca3150efd6433314fb57e10c6ba763db6e /app/helpers/ci_status_helper.rb
parent504a1fac95a2af2cf90f00f310d244d8d37f0015 (diff)
Improve pipelines design
Diffstat (limited to 'app/helpers/ci_status_helper.rb')
-rw-r--r--app/helpers/ci_status_helper.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/app/helpers/ci_status_helper.rb b/app/helpers/ci_status_helper.rb
index acc01b008bf..cfad17dcacf 100644
--- a/app/helpers/ci_status_helper.rb
+++ b/app/helpers/ci_status_helper.rb
@@ -50,6 +50,13 @@ module CiStatusHelper
render_status_with_link('pipeline', pipeline.status, path, tooltip_placement)
end
+ def no_runners_for_project?(project)
+ project.runners.blank? &&
+ Ci::Runner.shared.blank?
+ end
+
+ private
+
def render_status_with_link(type, status, path, tooltip_placement)
link_to ci_icon_for_status(status),
path,
@@ -57,9 +64,4 @@ module CiStatusHelper
title: "#{type.titleize}: #{ci_label_for_status(status)}",
data: { toggle: 'tooltip', placement: tooltip_placement }
end
-
- def no_runners_for_project?(project)
- project.runners.blank? &&
- Ci::Runner.shared.blank?
- end
end