diff options
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/builds_helper.rb | 7 |
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 |