BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
07c6c8e0
Commit
07c6c8e0
authored
Dec 12, 2016
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stages render correctly and use new status object
parent
67e46e6f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
stage.js.es6
app/assets/javascripts/vue_pipelines_index/stage.js.es6
+3
-6
icons.scss
app/assets/stylesheets/pages/icons.scss
+8
-0
No files found.
app/assets/javascripts/vue_pipelines_index/stage.js.es6
View file @
07c6c8e0
...
...
@@ -6,16 +6,13 @@
props: ['stage'],
computed: {
buildStatus() {
return `Build: ${this.stage.status}`;
return `Build: ${this.stage.status
.label
}`;
},
tooltip() {
return `has-tooltip ci-status-icon-${this.stage.status}`;
return `has-tooltip ci-status-icon-${this.stage.status
.label
}`;
},
svg() {
return document
.querySelector(
`.icon_status_${this.stage.status}`,
).innerHTML;
return document.querySelector(`.${this.stage.status.icon}`).innerHTML;
},
},
template: `
...
...
app/assets/stylesheets/pages/icons.scss
View file @
07c6c8e0
...
...
@@ -6,6 +6,14 @@
}
}
.ci-status-icon-passed
{
color
:
$gl-success
;
svg
{
fill
:
$gl-success
;
}
}
.ci-status-icon-failed
{
color
:
$gl-danger
;
...
...
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