提交 fe72c3fe 编写于 作者: A Alfredo Sumaran

Move StagePlanComponent template to component in JS file

上级 1fc9b7ae
......@@ -3,13 +3,24 @@
global.cycleAnalytics = global.cycleAnalytics || {};
global.cycleAnalytics.StagePlanComponent = Vue.extend({
template: '#stage-plan-component',
components: {
'item-commit-component': gl.cycleAnalytics.ItemCommitComponent,
},
props: {
items: Array,
}
},
template: `
<div>
<div class="events-description">
Time before an issue starts implementation
</div>
<ul class="event-list">
<li class="event-item" v-for="commit in items">
<item-commit-component :commit="commit"></item-commit-component>
</li>
</ul>
</div>
`,
});
})(window.gl || (window.gl = {}));
......@@ -94,14 +94,6 @@
%template{ "v-if" => "state.items.length && !isLoadingStage && !isEmptyStage" }
%component{ ":is" => "currentStage.component", ":items" => "state.items" }
%script{ type: 'text/x-template', id: 'stage-plan-component' }
%div
.events-description
Time before an issue starts implementation
%ul.event-list
%li.event-item{ "v-for" => "commit in items" }
%item-commit-component{ ":commit" => "commit" }
%script{ type: 'text/x-template', id: 'stage-code-component' }
%div
.events-description
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册