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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-18 10:44:10 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-18 10:44:10 +0300
commite86668984f4f7465ed39ffcf9ce09aabfa8f79da (patch)
tree34b5dc13d0b579b0293fd21af1127ffef12531cc /app/helpers/ci
parent0aec0d53b10078613b66b0d41424ee4264ae6406 (diff)
Style CI project/build list
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers/ci')
-rw-r--r--app/helpers/ci/builds_helper.rb10
-rw-r--r--app/helpers/ci/commits_helper.rb12
2 files changed, 11 insertions, 11 deletions
diff --git a/app/helpers/ci/builds_helper.rb b/app/helpers/ci/builds_helper.rb
index cdabdad17d2..422994f5984 100644
--- a/app/helpers/ci/builds_helper.rb
+++ b/app/helpers/ci/builds_helper.rb
@@ -16,15 +16,15 @@ module Ci
ci_project_build_url(build.project, build)
end
- def build_status_alert_class(build)
+ def build_status_css_class(build)
if build.success?
- 'alert-success'
+ 'build-success'
elsif build.failed?
- 'alert-danger'
+ 'build-danger'
elsif build.canceled?
- 'alert-disabled'
+ 'build-disabled'
else
- 'alert-warning'
+ 'build-warning'
end
end
diff --git a/app/helpers/ci/commits_helper.rb b/app/helpers/ci/commits_helper.rb
index 74de30e006e..2c86bbffa36 100644
--- a/app/helpers/ci/commits_helper.rb
+++ b/app/helpers/ci/commits_helper.rb
@@ -1,17 +1,17 @@
module Ci
module CommitsHelper
- def commit_status_alert_class(commit)
- return 'alert-info' unless commit
+ def commit_status_css_class(commit)
+ return 'build-info' unless commit
case commit.status
when 'success'
- 'alert-success'
+ 'build-success'
when 'failed', 'canceled'
- 'alert-danger'
+ 'build-danger'
when 'skipped'
- 'alert-disabled'
+ 'build-disabled'
else
- 'alert-warning'
+ 'build-warning'
end
end