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
1235d96e
Commit
1235d96e
authored
Dec 14, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dropdown statuses in mini-pipeline graph
parent
4ae28cb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
app/views/projects/ci/pipelines/_pipeline.html.haml
app/views/projects/ci/pipelines/_pipeline.html.haml
+19
-3
No files found.
app/views/projects/ci/pipelines/_pipeline.html.haml
View file @
1235d96e
...
@@ -43,10 +43,26 @@
...
@@ -43,10 +43,26 @@
%td
.stage-cell
%td
.stage-cell
-
pipeline
.
stages
.
each
do
|
stage
|
-
pipeline
.
stages
.
each
do
|
stage
|
-
if
stage
.
status
-
if
stage
.
status
-
status
=
ci_label_for_status
(
stage
.
detailed_status
)
-
hasMultipleBuilds
=
stage
.
statuses
.
count
>
1
-
tooltip
=
"
#{
stage
.
name
.
titleize
}
:
#{
stage
.
status
||
'not found'
}
"
-
tooltip
=
"
#{
stage
.
name
.
titleize
}
:
#{
stage
.
status
||
'not found'
}
"
.stage-container
=
link_to
namespace_project_pipeline_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
id
,
anchor:
stage
.
name
),
class:
"has-tooltip ci-status-icon-
#{
stage
.
status
}
"
,
title:
tooltip
do
-
if
status
=
ci_icon_for_status
(
stage
.
status
)
.stage-container
-
if
hasMultipleBuilds
.dropdown.inline
%a
.dropdown-toggle
{
id:
"dropdown-#{stage.name}"
,
"data-toggle"
=>
"dropdown"
,
"aria-haspopup"
=>
"true"
,
"aria-expanded"
=>
"false"
}
=
ci_icon_for_status
(
stage
.
detailed_status
)
%span
.caret
.dropdown-menu.grouped-pipeline-dropdown
{
"aria-labelledby"
=>
"dropdown-#{stage.name}"
}
.arrow
%ul
-
stage
.
statuses
.
each
do
|
status
|
%li
status
-
else
=
link_to
namespace_project_pipeline_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
id
,
anchor:
stage
.
name
),
class:
"has-tooltip ci-status-icon-
#{
stage
.
status
}
"
,
title:
tooltip
do
=
ci_icon_for_status
(
stage
.
detailed_status
)
%td
%td
-
if
pipeline
.
duration
-
if
pipeline
.
duration
...
...
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