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
c9b63924
Commit
c9b63924
authored
Dec 07, 2016
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conform to status object for svg icon names
parent
e86c5570
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
13 deletions
+11
-13
stage.js.es6
app/assets/javascripts/vue_pipelines_index/stage.js.es6
+1
-1
status.js.es6
app/assets/javascripts/vue_pipelines_index/status.js.es6
+2
-4
index.html.haml
app/views/projects/pipelines/index.html.haml
+8
-8
No files found.
app/assets/javascripts/vue_pipelines_index/stage.js.es6
View file @
c9b63924
...
...
@@ -14,7 +14,7 @@
svg() {
return document
.querySelector(
`.
${this.stage.status}-icon-svg.hidden
`,
`.
icon_status_${this.stage.status}
`,
).innerHTML;
},
},
...
...
app/assets/javascripts/vue_pipelines_index/status.js.es6
View file @
c9b63924
...
...
@@ -15,14 +15,12 @@
},
svg() {
return document
.querySelector(
`.${this.pipeline.details.status.text}-icon-svg.hidden`,
).innerHTML;
.querySelector(`.${this.pipeline.details.status.icon}`).innerHTML;
},
},
template: `
<td class="commit-link">
<a :href='pipeline.
url
'>
<a :href='pipeline.
details.status.details_path
'>
<span :class='cssClasses'>
<span v-html='svg'></span>
<span> {{pipeline.details.status.text}}</span>
...
...
app/views/projects/pipelines/index.html.haml
View file @
c9b63924
...
...
@@ -42,21 +42,21 @@
-
else
.commit-icon-svg.hidden
=
custom_icon
(
"icon_commit"
)
.
canceled-icon-svg
.hidden
.
icon_status_canceled
.hidden
=
custom_icon
(
"icon_status_canceled"
)
.
running-icon-sv
g.hidden
.
icon_status_runnin
g.hidden
=
custom_icon
(
"icon_status_running"
)
.
skipped-icon-svg
.hidden
.
icon_status_skipped
.hidden
=
custom_icon
(
"icon_status_skipped"
)
.
created-icon-svg
.hidden
.
icon_status_created
.hidden
=
custom_icon
(
"icon_status_created"
)
.
pending-icon-sv
g.hidden
.
icon_status_pendin
g.hidden
=
custom_icon
(
"icon_status_pending"
)
.
success-icon-svg
.hidden
.
icon_status_success
.hidden
=
custom_icon
(
"icon_status_success"
)
.
failed-icon-svg
.hidden
.
icon_status_failed
.hidden
=
custom_icon
(
"icon_status_failed"
)
.
warning-icon-sv
g.hidden
.
icon_status_warnin
g.hidden
=
custom_icon
(
"icon_status_warning"
)
.vue-pipelines-index
...
...
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