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
1f67cc4a
Commit
1f67cc4a
authored
Jul 08, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set width on stage columns; min width on table with scroll on mobile; add avatar to commit column
parent
446eecb8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
93 additions
and
46 deletions
+93
-46
app/assets/stylesheets/framework/avatar.scss
app/assets/stylesheets/framework/avatar.scss
+1
-0
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+1
-0
app/assets/stylesheets/pages/builds.scss
app/assets/stylesheets/pages/builds.scss
+0
-38
app/assets/stylesheets/pages/pipelines.scss
app/assets/stylesheets/pages/pipelines.scss
+85
-2
app/views/projects/ci/pipelines/_pipeline.html.haml
app/views/projects/ci/pipelines/_pipeline.html.haml
+5
-5
app/views/projects/pipelines/index.html.haml
app/views/projects/pipelines/index.html.haml
+1
-1
No files found.
app/assets/stylesheets/framework/avatar.scss
View file @
1f67cc4a
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
}
}
&
.s16
{
width
:
16px
;
height
:
16px
;
margin-right
:
6px
;
}
&
.s16
{
width
:
16px
;
height
:
16px
;
margin-right
:
6px
;
}
&
.s20
{
width
:
20px
;
height
:
20px
;
margin-right
:
7px
;
}
&
.s24
{
width
:
24px
;
height
:
24px
;
margin-right
:
8px
;
}
&
.s24
{
width
:
24px
;
height
:
24px
;
margin-right
:
8px
;
}
&
.s26
{
width
:
26px
;
height
:
26px
;
margin-right
:
8px
;
}
&
.s26
{
width
:
26px
;
height
:
26px
;
margin-right
:
8px
;
}
&
.s32
{
width
:
32px
;
height
:
32px
;
margin-right
:
10px
;
}
&
.s32
{
width
:
32px
;
height
:
32px
;
margin-right
:
10px
;
}
...
...
app/assets/stylesheets/framework/variables.scss
View file @
1f67cc4a
...
@@ -17,6 +17,7 @@ $focus-border-color: #3aabf0;
...
@@ -17,6 +17,7 @@ $focus-border-color: #3aabf0;
$table-border-color
:
#f0f0f0
;
$table-border-color
:
#f0f0f0
;
$background-color
:
#fafafa
;
$background-color
:
#fafafa
;
$dark-background-color
:
#f7f7f7
;
$dark-background-color
:
#f7f7f7
;
$table-text-gray
:
#8f8f8f
;
/*
/*
* Text
* Text
...
...
app/assets/stylesheets/pages/builds.scss
View file @
1f67cc4a
...
@@ -83,44 +83,6 @@
...
@@ -83,44 +83,6 @@
}
}
}
}
.table.builds
{
tr
{
th
{
padding
:
18px
10px
;
border
:
none
;
}
}
tbody
{
border-top-width
:
1px
;
}
.branch-commit
{
.branch-name
{
max-width
:
180px
;
overflow
:
hidden
;
display
:
inline-block
;
white-space
:
nowrap
;
vertical-align
:
top
;
text-overflow
:
ellipsis
;
margin-left
:
10px
;
}
.commit-id
{
color
:
$gl-link-color
;
}
}
.build-link
{
a
{
color
:
$gl-dark-link-color
;
}
}
}
.build-trace
{
.build-trace
{
background
:
$ci-output-bg
;
background
:
$ci-output-bg
;
color
:
$ci-text-color
;
color
:
$ci-text-color
;
...
...
app/assets/stylesheets/pages/pipelines.scss
View file @
1f67cc4a
.pipelines
{
.pipelines
{
.stage
{
.stage
{
max-width
:
100px
;
max-width
:
70px
;
width
:
70px
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
.duration
,
.finished
_
at
{
.duration
,
.finished
-
at
{
margin
:
4px
0
;
margin
:
4px
0
;
}
}
...
@@ -22,3 +23,85 @@
...
@@ -22,3 +23,85 @@
margin
:
4px
;
margin
:
4px
;
}
}
}
}
.content-list.pipelines
{
width
:
100%
;
overflow
:
auto
;
}
.table.builds
{
min-width
:
1100px
;
tr
{
th
{
padding
:
18px
10px
;
border
:
none
;
}
}
tbody
{
border-top-width
:
1px
;
}
.branch-commit
{
.branch-name
{
margin-left
:
8px
;
font-weight
:
bold
;
max-width
:
180px
;
overflow
:
hidden
;
display
:
inline-block
;
white-space
:
nowrap
;
vertical-align
:
top
;
text-overflow
:
ellipsis
;
}
.fa
{
margin
:
0
6px
;
}
.commit-id
{
color
:
$gl-link-color
;
margin-right
:
8px
;
}
.commit-title
{
margin-top
:
4px
;
max-width
:
320px
;
overflow
:
hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
}
.avatar
{
margin-left
:
0
;
}
}
.duration
,
.finished-at
{
color
:
$table-text-gray
;
.fa
{
margin-right
:
5px
;
}
}
.pipeline-actions
{
.btn
{
color
:
$table-text-gray
;
}
.btn-remove
{
color
:
$white-light
;
}
}
.build-link
{
a
{
color
:
$gl-dark-link-color
;
}
}
}
app/views/projects/ci/pipelines/_pipeline.html.haml
View file @
1f67cc4a
...
@@ -10,9 +10,8 @@
...
@@ -10,9 +10,8 @@
%span
##{pipeline.id}
%span
##{pipeline.id}
-
if
pipeline
.
ref
-
if
pipeline
.
ref
=
link_to
pipeline
.
ref
,
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
pipeline
.
ref
),
class:
"monospace branch-name"
=
link_to
pipeline
.
ref
,
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
pipeline
.
ref
),
class:
"monospace branch-name"
·
=
icon
(
"code-fork"
)
=
link_to
pipeline
.
short_sha
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
pipeline
.
sha
),
class:
"commit-id monospace"
=
link_to
pipeline
.
short_sha
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
pipeline
.
sha
),
class:
"commit-id monospace"
-
if
pipeline
.
tag?
-
if
pipeline
.
tag?
%span
.label.label-primary
tag
%span
.label.label-primary
tag
-
elsif
pipeline
.
latest?
-
elsif
pipeline
.
latest?
...
@@ -26,6 +25,7 @@
...
@@ -26,6 +25,7 @@
%p
.commit-title
%p
.commit-title
-
if
commit
=
pipeline
.
commit
-
if
commit
=
pipeline
.
commit
=
commit_author_avatar
(
commit
,
size:
20
)
=
link_to_gfm
truncate
(
commit
.
title
,
length:
60
),
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
commit
.
id
),
class:
"commit-row-message"
=
link_to_gfm
truncate
(
commit
.
title
,
length:
60
),
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
commit
.
id
),
class:
"commit-row-message"
-
else
-
else
Cant find HEAD commit for this branch
Cant find HEAD commit for this branch
...
@@ -46,14 +46,14 @@
...
@@ -46,14 +46,14 @@
%td
%td
-
if
pipeline
.
started_at
&&
pipeline
.
finished_at
-
if
pipeline
.
started_at
&&
pipeline
.
finished_at
%p
.duration
%p
.duration
=
icon
(
"clock-o"
)
=
icon
(
"clock-o"
)
=
duration_in_numbers
(
pipeline
.
finished_at
,
pipeline
.
started_at
)
=
duration_in_numbers
(
pipeline
.
finished_at
,
pipeline
.
started_at
)
-
if
pipeline
.
finished_at
-
if
pipeline
.
finished_at
%p
.
duration
%p
.
finished-at
=
icon
(
"calendar"
)
=
icon
(
"calendar"
)
#{
time_ago_with_tooltip
(
pipeline
.
finished_at
)
}
#{
time_ago_with_tooltip
(
pipeline
.
finished_at
)
}
%td
%td
.pipeline-actions
.controls.hidden-xs.pull-right
.controls.hidden-xs.pull-right
-
artifacts
=
pipeline
.
builds
.
latest
.
select
{
|
b
|
b
.
artifacts?
}
-
artifacts
=
pipeline
.
builds
.
latest
.
select
{
|
b
|
b
.
artifacts?
}
-
if
artifacts
.
present?
-
if
artifacts
.
present?
...
...
app/views/projects/pipelines/index.html.haml
View file @
1f67cc4a
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
%th
.stage
%th
.stage
%span
.has-tooltip
{
title:
"#{stage.titleize}"
}
%span
.has-tooltip
{
title:
"#{stage.titleize}"
}
=
stage
.
titleize
=
stage
.
titleize
%
%
th
%th
%th
%th
=
render
@pipelines
,
commit_sha:
true
,
stage:
true
,
allow_retry:
true
,
stages:
stages
=
render
@pipelines
,
commit_sha:
true
,
stage:
true
,
allow_retry:
true
,
stages:
stages
...
...
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