summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2016-10-13 14:59:23 -0500
committerAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2016-10-18 08:29:29 -0500
commit0bd525005ba279eae2733c0c68df280e4fb25b70 (patch)
treeb8a52361ed4aea60b9d59cdc3ef2f7cb36c31192 /app/helpers
parent87222e27e30e45024c2d930650a876e4447d3708 (diff)
downloadgitlab-ce-0bd525005ba279eae2733c0c68df280e4fb25b70.tar.gz
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