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
Léo-Paul Géneau
gitlab-ce
Commits
770ecd55
Commit
770ecd55
authored
Aug 25, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Curved lines at top of pipeline graph
parent
6e584f46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
2 deletions
+45
-2
app/assets/stylesheets/pages/pipelines.scss
app/assets/stylesheets/pages/pipelines.scss
+44
-2
app/views/projects/ci/builds/_build_pipeline.html.haml
app/views/projects/ci/builds/_build_pipeline.html.haml
+1
-0
No files found.
app/assets/stylesheets/pages/pipelines.scss
View file @
770ecd55
...
@@ -370,8 +370,11 @@
...
@@ -370,8 +370,11 @@
// Connect second build to first build with smaller curved line
// Connect second build to first build with smaller curved line
&
:nth-child
(
2
)
{
&
:nth-child
(
2
)
{
&
:
:
after
,
&::
before
{
&
:
:
after
,
&::
before
{
height
:
45px
;
height
:
29px
;
top
:
-26px
;
top
:
-10px
;
}
.curve
{
display
:
block
;
}
}
}
}
}
}
...
@@ -390,6 +393,12 @@
...
@@ -390,6 +393,12 @@
border
:
none
;
border
:
none
;
}
}
}
}
// Remove opposite curve
.curve
{
&
:
:
before
{
display
:
none
;
}
}
}
}
}
}
...
@@ -401,6 +410,39 @@
...
@@ -401,6 +410,39 @@
border
:
none
;
border
:
none
;
}
}
}
}
// Remove opposite curve
.curve
{
&
:
:
after
{
display
:
none
;
}
}
}
}
// Curve first child connecting lines in opposite direction
.curve
{
display
:
none
;
&
:
:
before
,
&::
after
{
content
:
''
;
width
:
21px
;
height
:
25px
;
position
:
absolute
;
top
:
-28
.5px
;
border-top
:
2px
solid
$border-color
;
}
&
:
:
after
{
left
:
-39px
;
border-right
:
2px
solid
$border-color
;
border-radius
:
0
50%
0
;
}
&
:
:
before
{
right
:
-39px
;
border-left
:
2px
solid
$border-color
;
border-radius
:
50%
0
0
;
}
}
}
}
}
}
...
...
app/views/projects/ci/builds/_build_pipeline.html.haml
View file @
770ecd55
-
is_playable
=
subject
.
playable?
&&
can?
(
current_user
,
:update_build
,
@project
)
-
is_playable
=
subject
.
playable?
&&
can?
(
current_user
,
:update_build
,
@project
)
%li
.build
{
class:
(
"playable"
if
is_playable
)}
%li
.build
{
class:
(
"playable"
if
is_playable
)}
.curve
.build-content
.build-content
-
if
is_playable
-
if
is_playable
=
link_to
play_namespace_project_build_path
(
subject
.
project
.
namespace
,
subject
.
project
,
subject
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Play'
do
=
link_to
play_namespace_project_build_path
(
subject
.
project
.
namespace
,
subject
.
project
,
subject
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Play'
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