BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
fe72c3fe
Commit
fe72c3fe
authored
Nov 09, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move StagePlanComponent template to component in JS file
parent
1fc9b7ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
stage_plan_component.js.es6
...ts/cycle_analytics/components/stage_plan_component.js.es6
+13
-2
show.html.haml
app/views/projects/cycle_analytics/show.html.haml
+0
-8
No files found.
app/assets/javascripts/cycle_analytics/components/stage_plan_component.js.es6
View file @
fe72c3fe
...
...
@@ -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 = {}));
app/views/projects/cycle_analytics/show.html.haml
View file @
fe72c3fe
...
...
@@ -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
...
...
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