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
87ee8763
Commit
87ee8763
authored
Oct 07, 2016
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add separate pipeline and commit columns
parent
359b4f9a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
44 deletions
+41
-44
app/assets/stylesheets/pages/pipelines.scss
app/assets/stylesheets/pages/pipelines.scss
+9
-19
app/views/projects/ci/pipelines/_pipeline.html.haml
app/views/projects/ci/pipelines/_pipeline.html.haml
+25
-20
app/views/projects/commit/_pipelines_list.haml
app/views/projects/commit/_pipelines_list.haml
+1
-0
app/views/projects/pipelines/index.html.haml
app/views/projects/pipelines/index.html.haml
+6
-5
No files found.
app/assets/stylesheets/pages/pipelines.scss
View file @
87ee8763
...
@@ -23,10 +23,9 @@
...
@@ -23,10 +23,9 @@
.table.builds
{
.table.builds
{
min-width
:
1200px
;
min-width
:
1200px
;
.
branch-commit
{
.
pipeline-id
{
width
:
33%
;
color
:
$black
;
}
}
}
}
}
}
...
@@ -81,7 +80,13 @@
...
@@ -81,7 +80,13 @@
}
}
}
}
.avatar
{
margin-left
:
0
;
float
:
none
;
}
.branch-commit
{
.branch-commit
{
width
:
30%
;
.branch-name
{
.branch-name
{
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -118,10 +123,6 @@
...
@@ -118,10 +123,6 @@
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
}
}
.avatar
{
margin-left
:
0
;
}
.label
{
.label
{
margin-right
:
4px
;
margin-right
:
4px
;
}
}
...
@@ -137,18 +138,7 @@
...
@@ -137,18 +138,7 @@
.icon-container
{
.icon-container
{
display
:
inline-block
;
display
:
inline-block
;
text-align
:
right
;
width
:
10px
;
width
:
15px
;
.fa
{
position
:
relative
;
right
:
3px
;
}
svg
{
position
:
relative
;
right
:
1px
;
}
}
}
.stage-cell
{
.stage-cell
{
...
...
app/views/projects/ci/pipelines/_pipeline.html.haml
View file @
87ee8763
...
@@ -9,17 +9,13 @@
...
@@ -9,17 +9,13 @@
=
ci_icon_for_status
(
status
)
=
ci_icon_for_status
(
status
)
-
else
-
else
=
ci_status_with_icon
(
status
)
=
ci_status_with_icon
(
status
)
%td
.branch-commit
%td
=
link_to
namespace_project_pipeline_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
id
)
do
=
link_to
namespace_project_pipeline_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
id
)
do
%span
##{pipeline.id}
%span
.pipeline-id
##{pipeline.id}
-
if
pipeline
.
ref
&&
show_branch
%span
by
.icon-container
-
if
commit
=
pipeline
.
commit
=
pipeline
.
tag?
?
icon
(
'tag'
)
:
icon
(
'code-fork'
)
=
author_avatar
(
commit
,
size:
20
)
=
link_to
pipeline
.
ref
,
namespace_project_commits_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
ref
),
class:
"monospace branch-name"
-
if
show_commit
.icon-container
=
custom_icon
(
"icon_commit"
)
=
link_to
pipeline
.
short_sha
,
namespace_project_commit_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
sha
),
class:
"commit-id monospace"
-
if
pipeline
.
latest?
-
if
pipeline
.
latest?
%span
.label.label-success.has-tooltip
{
title:
'Latest build for this branch'
}
latest
%span
.label.label-success.has-tooltip
{
title:
'Latest build for this branch'
}
latest
-
if
pipeline
.
triggered?
-
if
pipeline
.
triggered?
...
@@ -29,6 +25,16 @@
...
@@ -29,6 +25,16 @@
-
if
pipeline
.
builds
.
any?
(
&
:stuck?
)
-
if
pipeline
.
builds
.
any?
(
&
:stuck?
)
%span
.label.label-warning
stuck
%span
.label.label-warning
stuck
%td
.branch-commit
-
if
pipeline
.
ref
&&
show_branch
.icon-container
=
pipeline
.
tag?
?
icon
(
'tag'
)
:
icon
(
'code-fork'
)
=
link_to
pipeline
.
ref
,
namespace_project_commits_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
ref
),
class:
"monospace branch-name"
-
if
show_commit
.icon-container
=
custom_icon
(
"icon_commit"
)
=
link_to
pipeline
.
short_sha
,
namespace_project_commit_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
sha
),
class:
"commit-id monospace"
%p
.commit-title
%p
.commit-title
-
if
commit
=
pipeline
.
commit
-
if
commit
=
pipeline
.
commit
=
author_avatar
(
commit
,
size:
20
)
=
author_avatar
(
commit
,
size:
20
)
...
@@ -36,16 +42,15 @@
...
@@ -36,16 +42,15 @@
-
else
-
else
Cant find HEAD commit for this branch
Cant find HEAD commit for this branch
-
stages_status
=
pipeline
.
statuses
.
relevant
.
latest
.
stages_status
-
stages_status
=
pipeline
.
statuses
.
relevant
.
latest
.
stages_status
%td
.stage-cell
%td
.stage-cell
-
stages
.
each
do
|
stage
|
-
stages
.
each
do
|
stage
|
-
status
=
stages_status
[
stage
]
-
status
=
stages_status
[
stage
]
-
tooltip
=
"
#{
stage
.
titleize
}
:
#{
status
||
'not found'
}
"
-
tooltip
=
"
#{
stage
.
titleize
}
:
#{
status
||
'not found'
}
"
-
if
status
-
if
status
.stage-container
.stage-container
=
link_to
namespace_project_pipeline_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
id
,
anchor:
stage
),
class:
"has-tooltip ci-status-icon-
#{
status
}
"
,
title:
tooltip
do
=
link_to
namespace_project_pipeline_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
id
,
anchor:
stage
),
class:
"has-tooltip ci-status-icon-
#{
status
}
"
,
title:
tooltip
do
=
ci_icon_for_status
(
status
)
=
ci_icon_for_status
(
status
)
%td
%td
-
if
pipeline
.
duration
-
if
pipeline
.
duration
...
...
app/views/projects/commit/_pipelines_list.haml
View file @
87ee8763
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
%tbody
%tbody
%th
Status
%th
Status
%th
Pipeline
%th
Pipeline
%th
Commit
%th
Stages
%th
Stages
%th
%th
%th
%th
...
...
app/views/projects/pipelines/index.html.haml
View file @
87ee8763
...
@@ -45,11 +45,12 @@
...
@@ -45,11 +45,12 @@
.table-holder
.table-holder
%table
.table.builds
%table
.table.builds
%thead
%thead
%th
.col-xs-1.col-sm-1
Status
%th
Status
%th
.col-xs-2.col-sm-4
Pipeline
%th
Pipeline
%th
.col-xs-2.col-sm-2
Stages
%th
Commit
%th
.col-xs-2.col-sm-2
%th
Stages
%th
.hidden-xs.col-sm-3
%th
%th
.hidden-xs
=
render
@pipelines
,
commit_sha:
true
,
stage:
true
,
allow_retry:
true
,
stages:
stages
=
render
@pipelines
,
commit_sha:
true
,
stage:
true
,
allow_retry:
true
,
stages:
stages
=
paginate
@pipelines
,
theme:
'gitlab'
=
paginate
@pipelines
,
theme:
'gitlab'
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