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:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2016-10-13 22:59:23 +0300
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2016-10-18 16:29:29 +0300
commit0bd525005ba279eae2733c0c68df280e4fb25b70 (patch)
treeb8a52361ed4aea60b9d59cdc3ef2f7cb36c31192 /app/helpers
parent87222e27e30e45024c2d930650a876e4447d3708 (diff)
Move sidebar build class into helper
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/builds_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/builds_helper.rb b/app/helpers/builds_helper.rb
new file mode 100644
index 00000000000..b2004b99961
--- /dev/null
+++ b/app/helpers/builds_helper.rb
@@ -0,0 +1,7 @@
+module BuildsHelper
+ def sidebar_build_class(build, current_build)
+ build_class = ''
+ build_class += ' active' if build == current_build
+ build_class += ' retried' if build.retried?
+ end
+end