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
9fab5805
Commit
9fab5805
authored
Nov 01, 2016
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove fragment warning - formatting
parent
2bb7b476
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
173 additions
and
160 deletions
+173
-160
app/assets/javascripts/vue_pipelines_index/index.js.es6
app/assets/javascripts/vue_pipelines_index/index.js.es6
+5
-3
app/assets/javascripts/vue_pipelines_index/pipelines.vue.js.es6
...sets/javascripts/vue_pipelines_index/pipelines.vue.js.es6
+97
-90
app/assets/javascripts/vue_pipelines_index/stages.vue.js.es6
app/assets/javascripts/vue_pipelines_index/stages.vue.js.es6
+69
-63
app/views/projects/pipelines/index.html.haml
app/views/projects/pipelines/index.html.haml
+2
-4
No files found.
app/assets/javascripts/vue_pipelines_index/index.js.es6
View file @
9fab5805
...
...
@@ -11,13 +11,13 @@
//= require ./pipelines.vue.js.es6
(() => {
const project = document.querySelector('.
table-holder
');
const project = document.querySelector('.
pipelines
');
Vue.use(VueResource);
// Vue.config.silent = true;
return new Vue({
el: '
#
vue-pipelines-index',
el: '
.
vue-pipelines-index',
data: {
scope: project.dataset.projectId,
store: new gl.PipelineStore(),
...
...
@@ -26,7 +26,9 @@
'vue-pipelines': gl.VuePipeLines,
},
template: `
<div>
<vue-pipelines :scope='scope' :store='store'></vue-pipelines>
</div>
`,
});
})();
app/assets/javascripts/vue_pipelines_index/pipelines.vue.js.es6
View file @
9fab5805
...
...
@@ -36,6 +36,8 @@
},
},
template: `
<div class="table-holder">
<table class="table ci-table">
<thead>
<tr>
<th>Status</th>
...
...
@@ -119,7 +121,10 @@
href="pipelines#{{stage.title}}"
this way I can pass it as a prop to
ex: <vue-stages :stages='stages'>
ex:
<td class="stage-cell" v-for='stage in pipelines.stages'>
<vue-stage :stage='stage'>
</td>
-->
<vue-stages></vue-stages>
</td>
...
...
@@ -130,6 +135,8 @@
</td>
</tr>
</tbody>
</table>
</div>
`,
});
})(window.gl || (window.gl = {}));
app/assets/javascripts/vue_pipelines_index/stages.vue.js.es6
View file @
9fab5805
This diff is collapsed.
Click to expand it.
app/views/projects/pipelines/index.html.haml
View file @
9fab5805
...
...
@@ -36,14 +36,12 @@
=
link_to
ci_lint_path
,
class:
'btn btn-default'
do
%span
CI Lint
%div
.content-list.pipelines
%div
.content-list.pipelines
{
"data-project-id"
:
"#{@project.id}"
}
-
stages
=
@pipelines
.
stages
-
if
@pipelines
.
blank?
%div
.nothing-here-block
No pipelines to show
-
else
.table-holder
{
"data-project-id"
:
"#{@project.id}"
}
%table
.table.ci-table
%tbody
#vue-pipelines-index
.vue-pipelines-index
=
page_specific_javascript_tag
(
'vue_pipelines_index/index.js'
)
\ No newline at end of file
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