Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0410ac53
Commit
0410ac53
authored
Feb 13, 2017
by
Filipa Lacerda
Committed by
Regis
Feb 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch '27939-fix-current-build-arrow' into 'master'
Fix current build arrow Closes #27939 See merge request !9154
parent
126dfc72
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
app/helpers/builds_helper.rb
app/helpers/builds_helper.rb
+1
-1
changelogs/unreleased/27939-fix-current-build-arrow.yml
changelogs/unreleased/27939-fix-current-build-arrow.yml
+4
-0
spec/features/projects/builds_spec.rb
spec/features/projects/builds_spec.rb
+4
-0
No files found.
app/helpers/builds_helper.rb
View file @
0410ac53
module
BuildsHelper
module
BuildsHelper
def
sidebar_build_class
(
build
,
current_build
)
def
sidebar_build_class
(
build
,
current_build
)
build_class
=
''
build_class
=
''
build_class
+=
' active'
if
build
==
current_buil
d
build_class
+=
' active'
if
build
.
id
===
current_build
.
i
d
build_class
+=
' retried'
if
build
.
retried?
build_class
+=
' retried'
if
build
.
retried?
build_class
build_class
end
end
...
...
changelogs/unreleased/27939-fix-current-build-arrow.yml
0 → 100644
View file @
0410ac53
---
title
:
Fix current build arrow indicator
merge_request
:
author
:
spec/features/projects/builds_spec.rb
View file @
0410ac53
...
@@ -109,6 +109,10 @@ feature 'Builds', :feature do
...
@@ -109,6 +109,10 @@ feature 'Builds', :feature do
expect
(
page
).
to
have_content
pipeline
.
git_commit_message
expect
(
page
).
to
have_content
pipeline
.
git_commit_message
expect
(
page
).
to
have_content
pipeline
.
git_author_name
expect
(
page
).
to
have_content
pipeline
.
git_author_name
end
end
it
'shows active build'
do
expect
(
page
).
to
have_selector
(
'.build-job.active'
)
end
end
end
context
"Job from other project"
do
context
"Job from other project"
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment