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
Tatuya Kamada
gitlab-ce
Commits
0912022d
Commit
0912022d
authored
Sep 08, 2016
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add background color and icon to retried builds
parent
5dcb57e5
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
3 deletions
+17
-3
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
+9
-0
app/assets/stylesheets/pages/pipelines.scss
app/assets/stylesheets/pages/pipelines.scss
+4
-0
app/views/projects/builds/_sidebar.html.haml
app/views/projects/builds/_sidebar.html.haml
+2
-2
app/views/projects/ci/builds/_build.html.haml
app/views/projects/ci/builds/_build.html.haml
+1
-1
No files found.
app/assets/stylesheets/framework/variables.scss
View file @
0912022d
...
@@ -16,6 +16,7 @@ $white-light: #fff;
...
@@ -16,6 +16,7 @@ $white-light: #fff;
$white-normal
:
#ededed
;
$white-normal
:
#ededed
;
$white-dark
:
#ececec
;
$white-dark
:
#ececec
;
$gray-lightest
:
#fdfdfd
;
$gray-light
:
#fafafa
;
$gray-light
:
#fafafa
;
$gray-lighter
:
#f9f9f9
;
$gray-lighter
:
#f9f9f9
;
$gray-normal
:
#f5f5f5
;
$gray-normal
:
#f5f5f5
;
...
...
app/assets/stylesheets/pages/builds.scss
View file @
0912022d
...
@@ -210,9 +210,18 @@
...
@@ -210,9 +210,18 @@
}
}
}
}
&
.retried
{
background-color
:
$gray-lightest
;
}
&
:hover
{
&
:hover
{
background-color
:
$row-hover
;
background-color
:
$row-hover
;
}
}
.fa-refresh
{
font-size
:
13px
;
margin-left
:
3px
;
}
}
}
}
}
}
}
...
...
app/assets/stylesheets/pages/pipelines.scss
View file @
0912022d
...
@@ -73,6 +73,10 @@
...
@@ -73,6 +73,10 @@
border-top-width
:
1px
;
border-top-width
:
1px
;
}
}
.build.retried
{
background-color
:
$gray-lightest
;
}
.commit-link
{
.commit-link
{
.ci-status
{
.ci-status
{
...
...
app/views/projects/builds/_sidebar.html.haml
View file @
0912022d
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
.builds-container
.builds-container
-
statuses
.
each
do
|
build_status
|
-
statuses
.
each
do
|
build_status
|
-
builds
.
select
{
|
build
|
build
.
status
==
build_status
}.
each
do
|
build
|
-
builds
.
select
{
|
build
|
build
.
status
==
build_status
}.
each
do
|
build
|
.build-job
{
class:
(
'active'
if
build
==
@build
),
data:
{
stage:
build
.
stage
}}
.build-job
{
class:
(
'active'
if
build
==
@build
;
'retried'
if
@build
.
retried?
),
data:
{
stage:
build
.
stage
}}
=
link_to
namespace_project_build_path
(
@project
.
namespace
,
@project
,
build
)
do
=
link_to
namespace_project_build_path
(
@project
.
namespace
,
@project
,
build
)
do
=
icon
(
'arrow-right'
)
=
icon
(
'arrow-right'
)
=
ci_icon_for_status
(
build
.
status
)
=
ci_icon_for_status
(
build
.
status
)
...
@@ -136,4 +136,4 @@
...
@@ -136,4 +136,4 @@
-
else
-
else
=
build
.
id
=
build
.
id
-
if
@build
.
retried?
-
if
@build
.
retried?
%i
.fa.fa-
warning
.has-tooltip
{
data:
{
container:
'body'
,
placement:
'bottom'
},
title:
'This build was retried'
}
%i
.fa.fa-
refresh
.has-tooltip
{
data:
{
container:
'body'
,
placement:
'bottom'
},
title:
'This build was retried'
}
app/views/projects/ci/builds/_build.html.haml
View file @
0912022d
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
-
coverage
=
local_assigns
.
fetch
(
:coverage
,
false
)
-
coverage
=
local_assigns
.
fetch
(
:coverage
,
false
)
-
allow_retry
=
local_assigns
.
fetch
(
:allow_retry
,
false
)
-
allow_retry
=
local_assigns
.
fetch
(
:allow_retry
,
false
)
%tr
.build.commit
%tr
.build.commit
{
class:
(
'retried'
if
defined?
(
retried
)
&&
retried
)}
%td
.status
%td
.status
-
if
can?
(
current_user
,
:read_build
,
build
)
-
if
can?
(
current_user
,
:read_build
,
build
)
=
ci_status_with_icon
(
build
.
status
,
namespace_project_build_url
(
build
.
project
.
namespace
,
build
.
project
,
build
))
=
ci_status_with_icon
(
build
.
status
,
namespace_project_build_url
(
build
.
project
.
namespace
,
build
.
project
,
build
))
...
...
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