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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
3693495e
Commit
3693495e
authored
Aug 04, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style build dropdowns
parent
0b9cd0a1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
24 deletions
+11
-24
app/assets/stylesheets/pages/builds.scss
app/assets/stylesheets/pages/builds.scss
+7
-20
app/views/projects/builds/show.html.haml
app/views/projects/builds/show.html.haml
+4
-4
No files found.
app/assets/stylesheets/pages/builds.scss
View file @
3693495e
...
...
@@ -54,32 +54,19 @@
}
}
.nav-links
{
.build-dropdown
{
display
:
inline-block
;
margin-top
:
16px
;
svg
{
position
:
relative
;
top
:
2px
;
margin-right
:
3px
;
height
:
13px
;
}
.build-job
{
a
{
color
:
$gl-text-color
;
}
&
.active
{
a
{
font-weight
:
bold
;
}
}
}
}
.jobs-dropdown
{
svg
{
position
:
relative
;
top
:
2px
;
margin-right
:
3px
;
.stage-item
{
cursor
:
pointer
;
}
}
}
...
...
app/views/projects/builds/show.html.haml
View file @
3693495e
...
...
@@ -8,20 +8,20 @@
-
builds
=
@build
.
pipeline
.
builds
.
latest
.
to_a
-
statuses
=
[
"failed"
,
"pending"
,
"running"
,
"canceled"
,
"skipped"
,
"success"
]
-
if
builds
.
size
>
1
.dropdown.
stage
.dropdown.
build-dropdown
%button
.dropdown-menu-toggle
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%span
.stage-selection
More
=
icon
(
'caret-down'
)
%ul
.dropdown-menu
.overflow-jobs
%ul
.dropdown-menu
-
builds
.
map
(
&
:stage
).
uniq
.
each
do
|
stage
|
%li
%a
.stage-item
=
stage
.dropdown.
jobs
-dropdown
.dropdown.
build
-dropdown
%button
.dropdown-menu-toggle
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%span
.build-selection
More
=
icon
(
'caret-down'
)
%ul
.dropdown-menu
.overflow-jobs
%ul
.dropdown-menu
-
statuses
.
each
do
|
build_status
|
-
builds
.
select
{
|
build
|
build
.
status
==
build_status
}.
each
do
|
build
|
%li
.build-job
{
class:
(
'active'
if
build
==
@build
),
data:
{
id:
build
.
id
,
name:
build
.
name
,
stage:
build
.
stage
}}
...
...
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