debian-mirror-gitlab/app/helpers/builds_helper.rb

9 lines
218 B
Ruby
Raw Normal View History

2016-11-03 12:29:30 +05:30
module BuildsHelper
def sidebar_build_class(build, current_build)
build_class = ''
build_class += ' active' if build == current_build
build_class += ' retried' if build.retried?
build_class
end
end