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
Boxiang Sun
gitlab-ce
Commits
725ba04e
Commit
725ba04e
authored
Dec 26, 2016
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip
parent
d57faaa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
7 deletions
+49
-7
app/assets/javascripts/vue_pipelines_index/stage.js.es6
app/assets/javascripts/vue_pipelines_index/stage.js.es6
+49
-7
No files found.
app/assets/javascripts/vue_pipelines_index/stage.js.es6
View file @
725ba04e
...
...
@@ -3,6 +3,12 @@
((gl) => {
gl.VueStage = Vue.extend({
data() {
return {
request: false,
builds: '<ul></ul>',
};
},
props: ['stage', 'svgs', 'match'],
computed: {
buildStatus() {
...
...
@@ -14,15 +20,51 @@
svg() {
return this.svgs[this.match(this.stage.status.icon)];
},
spanClass() {
return `ci-status-icon ci-status-icon-${this.stage.status.group}`;
},
},
template: `
<a
:class='tooltip'
:title='buildStatus'
:href='stage.path'
v-html='svg'
>
</a>
<div class="stage-container mini-pipeline-graph">
<div class="dropdown inline build-content">
<button
class="has-tooltip builds-dropdown js-builds-dropdown-button"
data-placement="top"
data-stage-endpoint='stage.status.endpoint'
data-title='stage.status.type'
data-toggle="dropdown"
type="button"
>
<span :class='tooltip'>
<span class="mini-pipeline-graph-icon-container">
<span
:class='spanClass'
:v-html='svg'
>
</span>
<i class="fa fa-caret-down dropdown-caret"></i>
</span>
</span>
</button>
<div class="js-builds-dropdown-container">
<div class="dropdown-menu grouped-pipeline-dropdown">
<div class="arrow-up"></div>
<div
class="js-builds-dropdown-list"
v-if='request'
v-html='builds'
>
</div>
<div
class="js-builds-dropdown-loading builds-dropdown-loading"
v-if='!request'
>
<span class="fa fa-spinner fa-spin"></span>
</div>
</div>
</div>
</div>
</div>
`,
});
})(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