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
af4459e5
Commit
af4459e5
authored
Nov 11, 2016
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update stage icons with created
parent
b64ee664
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
1 deletion
+38
-1
app/assets/javascripts/vue_icons/index.js.es6
app/assets/javascripts/vue_icons/index.js.es6
+9
-0
app/assets/javascripts/vue_pipelines_index/stage.js.es6
app/assets/javascripts/vue_pipelines_index/stage.js.es6
+6
-1
app/assets/javascripts/vue_pipelines_status/created.js.es6
app/assets/javascripts/vue_pipelines_status/created.js.es6
+23
-0
No files found.
app/assets/javascripts/vue_icons/index.js.es6
View file @
af4459e5
...
...
@@ -46,4 +46,13 @@
</svg>
`,
});
gl.VueCreatedIcon = Vue.extend({
template: `
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" class="ci-status-icon-created" viewBox="0 0 14 14" enable-background="new 0 0 14 14">
<path d="M12.5,7 C12.5,4 10,1.5 7,1.5 C4,1.5 1.5,4 1.5,7 C1.5,10 4,12.5 7,12.5 C10,12.5 12.5,10 12.5,7 L12.5,7 Z M0,7 C0,3.1 3.1,0 7,0 C10.9,0 14,3.1 14,7 C14,10.9 10.9,14 7,14 C3.1,14 0,10.9 0,7 L0,7 Z"></path>
<circle cx="7" cy="7" r="3.25"></circle>
</svg>
`,
});
})(window.gl || (window.gl = {}));
app/assets/javascripts/vue_pipelines_index/stage.js.es6
View file @
af4459e5
...
...
@@ -8,16 +8,20 @@
'pending-icon': gl.VuePendingIcon,
'failed-icon': gl.VueFailedIcon,
'success-icon': gl.VueSuccessIcon,
'created-icon': gl.VueCreatedIcon,
},
props: ['stage'],
computed: {
buildStatus() {
return `Build: ${this.stage.status}`;
},
tooltip() {
return `has-tooltip ci-status-icon-${this.stage.status}`;
},
},
template: `
<a
class="has-tooltip ci-status-icon-failed"
:class='tooltip'
:title='buildStatus'
:href='stage.url'
>
...
...
@@ -25,6 +29,7 @@
<success-icon v-if='stage.status === "success"'></success-icon>
<failed-icon v-if='stage.status === "failed"'></failed-icon>
<pending-icon v-if='stage.status === "pending"'></pending-icon>
<created-icon v-if='stage.status === "created"'></created-icon>
</a>
`,
});
...
...
app/assets/javascripts/vue_pipelines_status/created.js.es6
0 → 100644
View file @
af4459e5
/* global Vue, gl */
/* eslint-disable no-param-reassign */
((gl) => {
gl.VueCreatedScope = Vue.extend({
components: {
'vue-created-icon': gl.VueCreatedIcon,
},
props: [
'pipeline',
],
template: `
<td class="commit-link">
<a :href='pipeline.url'>
<span class="ci-status ci-created">
<vue-created-icon></vue-created-icon>
failed
</span>
</a>
</td>
`,
});
})(window.gl || (window.gl = {}));
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