Commit 9fab5805 authored by Regis's avatar Regis

remove fragment warning - formatting

parent 2bb7b476
...@@ -11,13 +11,13 @@ ...@@ -11,13 +11,13 @@
//= require ./pipelines.vue.js.es6 //= require ./pipelines.vue.js.es6
(() => { (() => {
const project = document.querySelector('.table-holder'); const project = document.querySelector('.pipelines');
Vue.use(VueResource); Vue.use(VueResource);
// Vue.config.silent = true; // Vue.config.silent = true;
return new Vue({ return new Vue({
el: '#vue-pipelines-index', el: '.vue-pipelines-index',
data: { data: {
scope: project.dataset.projectId, scope: project.dataset.projectId,
store: new gl.PipelineStore(), store: new gl.PipelineStore(),
...@@ -26,7 +26,9 @@ ...@@ -26,7 +26,9 @@
'vue-pipelines': gl.VuePipeLines, 'vue-pipelines': gl.VuePipeLines,
}, },
template: ` template: `
<div>
<vue-pipelines :scope='scope' :store='store'></vue-pipelines> <vue-pipelines :scope='scope' :store='store'></vue-pipelines>
</div>
`, `,
}); });
})(); })();
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
}, },
}, },
template: ` template: `
<div class="table-holder">
<table class="table ci-table">
<thead> <thead>
<tr> <tr>
<th>Status</th> <th>Status</th>
...@@ -119,7 +121,10 @@ ...@@ -119,7 +121,10 @@
href="pipelines#{{stage.title}}" href="pipelines#{{stage.title}}"
this way I can pass it as a prop to 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> <vue-stages></vue-stages>
</td> </td>
...@@ -130,6 +135,8 @@ ...@@ -130,6 +135,8 @@
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table>
</div>
`, `,
}); });
})(window.gl || (window.gl = {})); })(window.gl || (window.gl = {}));
...@@ -36,14 +36,12 @@ ...@@ -36,14 +36,12 @@
= link_to ci_lint_path, class: 'btn btn-default' do = link_to ci_lint_path, class: 'btn btn-default' do
%span CI Lint %span CI Lint
%div.content-list.pipelines %div.content-list.pipelines{"data-project-id": "#{@project.id}"}
- stages = @pipelines.stages - stages = @pipelines.stages
- if @pipelines.blank? - if @pipelines.blank?
%div %div
.nothing-here-block No pipelines to show .nothing-here-block No pipelines to show
- else - else
.table-holder{"data-project-id": "#{@project.id}"} .vue-pipelines-index
%table.table.ci-table
%tbody#vue-pipelines-index
= page_specific_javascript_tag('vue_pipelines_index/index.js') = page_specific_javascript_tag('vue_pipelines_index/index.js')
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment