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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
1fc9b7ae
Commit
1fc9b7ae
authored
Nov 09, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move StageIssueComponent template to component in JS file
parent
b0d2dffc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
app/assets/javascripts/cycle_analytics/components/stage_issue_component.js.es6
...s/cycle_analytics/components/stage_issue_component.js.es6
+13
-2
app/views/projects/cycle_analytics/show.html.haml
app/views/projects/cycle_analytics/show.html.haml
+0
-8
No files found.
app/assets/javascripts/cycle_analytics/components/stage_issue_component.js.es6
View file @
1fc9b7ae
...
@@ -3,13 +3,24 @@
...
@@ -3,13 +3,24 @@
global.cycleAnalytics = global.cycleAnalytics || {};
global.cycleAnalytics = global.cycleAnalytics || {};
global.cycleAnalytics.StageIssueComponent = Vue.extend({
global.cycleAnalytics.StageIssueComponent = Vue.extend({
template: '#stage-issue-component',
components: {
components: {
'item-issue-component': gl.cycleAnalytics.ItemIssueComponent,
'item-issue-component': gl.cycleAnalytics.ItemIssueComponent,
},
},
props: {
props: {
items: Array,
items: Array,
}
},
template: `
<div>
<div class="events-description">
Time before an issue get scheluded
</div>
<ul class="stage-event-list">
<li class="stage-event-item" v-for="issue in items">
<item-issue-component :issue="issue"></item-issue-component>
</li>
</ul>
</div>
`,
});
});
})(window.gl || (window.gl = {}));
})(window.gl || (window.gl = {}));
app/views/projects/cycle_analytics/show.html.haml
View file @
1fc9b7ae
...
@@ -94,14 +94,6 @@
...
@@ -94,14 +94,6 @@
%template
{
"v-if"
=>
"state.items.length && !isLoadingStage && !isEmptyStage"
}
%template
{
"v-if"
=>
"state.items.length && !isLoadingStage && !isEmptyStage"
}
%component
{
":is"
=>
"currentStage.component"
,
":items"
=>
"state.items"
}
%component
{
":is"
=>
"currentStage.component"
,
":items"
=>
"state.items"
}
%script
{
type:
'text/x-template'
,
id:
'stage-issue-component'
}
%div
.events-description
Time before an issue get scheluded
%ul
.stage-event-list
%li
.stage-event-item
{
"v-for"
=>
"issue in items"
}
%item-issue-component
{
":issue"
=>
"issue"
}
%script
{
type:
'text/x-template'
,
id:
'stage-plan-component'
}
%script
{
type:
'text/x-template'
,
id:
'stage-plan-component'
}
%div
%div
.events-description
.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