Fix current build arrow

Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/27939
This commit is contained in:
Eric Eastwood 2017-02-10 16:14:18 -06:00
parent b88e82ff0a
commit f2aa9b4630
3 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,7 @@
module BuildsHelper
def sidebar_build_class(build, current_build)
build_class = ''
build_class += ' active' if build == current_build
build_class += ' active' if build.id === current_build.id
build_class += ' retried' if build.retried?
build_class
end

View File

@ -0,0 +1,4 @@
---
title: Fix current build arrow indicator
merge_request:
author:

View File

@ -109,6 +109,10 @@ feature 'Builds', :feature do
expect(page).to have_content pipeline.git_commit_message
expect(page).to have_content pipeline.git_author_name
end
it 'shows active build' do
expect(page).to have_selector('.build-job.active')
end
end
context "Job from other project" do