BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
283c1dc3
Commit
283c1dc3
authored
Aug 01, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add overflow tests to dropdown
parent
8e4ec561
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
11 deletions
+18
-11
build.js
app/assets/javascripts/build.js
+11
-0
show.html.haml
app/views/projects/builds/show.html.haml
+7
-11
No files found.
app/assets/javascripts/build.js
View file @
283c1dc3
...
...
@@ -20,6 +20,7 @@
$
(
document
).
off
(
'click'
,
'.js-sidebar-build-toggle'
).
on
(
'click'
,
'.js-sidebar-build-toggle'
,
this
.
toggleSidebar
);
$
(
window
).
off
(
'resize.build'
).
on
(
'resize.build'
,
this
.
hideSidebar
);
this
.
updateArtifactRemoveDate
();
this
.
displayTestStatuses
();
if
(
$
(
'#build-trace'
).
length
)
{
this
.
getInitialBuildTrace
();
this
.
initScrollButtonAffix
();
...
...
@@ -132,6 +133,16 @@
}
};
Build
.
prototype
.
displayTestStatuses
=
function
()
{
$jobTopPosition
=
$
(
'.build-job'
).
first
().
offset
().
top
;
$
(
'.build-job'
).
each
(
function
()
{
if
(
$
(
this
).
offset
().
top
>
$jobTopPosition
)
{
$
(
'.overflow-jobs > li'
).
append
(
$
(
this
));
}
})
};
return
Build
;
})();
...
...
app/views/projects/builds/show.html.haml
View file @
283c1dc3
...
...
@@ -12,23 +12,19 @@
-
statuses
.
each
do
|
build_status
|
-
builds
.
select
{
|
build
|
build
.
status
==
build_status
}.
each
do
|
build
|
%li
{
class:
(
'active'
if
build
==
@build
)
}
=
link_to
namespace_project_build_path
(
@project
.
namespace
,
@project
,
build
)
do
=
link_to
namespace_project_build_path
(
@project
.
namespace
,
@project
,
build
)
,
class:
'build-job'
do
=
ci_icon_for_status
(
build
.
status
)
%span
-
if
build
.
name
=
build
.
name
-
else
=
build
.
id
-
builds
.
select
{
|
build
|
build
.
status
==
"success"
}.
each
do
|
build
|
%li
{
class:
(
'active'
if
build
==
@build
)
}
=
link_to
namespace_project_build_path
(
@project
.
namespace
,
@project
,
build
)
do
=
ci_icon_for_status
(
build
.
status
)
%span
-
if
build
.
name
=
build
.
name
-
else
=
build
.
id
.dropdown
%button
.dropdown-menu-toggle
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%span
Test Name
=
icon
(
'chevron-down'
)
%ul
.dropdown-menu.overflow-jobs
%li
-
if
@build
.
retried?
%li
.active
...
...
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