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
Tatuya Kamada
gitlab-ce
Commits
b0d2dffc
Commit
b0d2dffc
authored
Nov 09, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move ItemIssueComponent template to component JS file
parent
10282283
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
25 deletions
+36
-25
app/assets/javascripts/cycle_analytics/components/item_issue_component.js.es6
...ts/cycle_analytics/components/item_issue_component.js.es6
+36
-1
app/views/projects/cycle_analytics/show.html.haml
app/views/projects/cycle_analytics/show.html.haml
+0
-24
No files found.
app/assets/javascripts/cycle_analytics/components/item_issue_component.js.es6
View file @
b0d2dffc
...
...
@@ -18,6 +18,41 @@
template: '#item-issue-component',
props: {
issue: Object,
}
},
template: `
<div class="item-details">
<img class="avatar" src="https://secure.gravatar.com/avatar/3731e7dd4f2b4fa8ae184c0a7519dd58?s=64&d=identicon">
<h5 class="item-title">
<a href="issue.url">
{{ issue.title }}
</a>
</h5>
<a href="issue.url">
#{{issue.id}}
</a>
<span>
Opened
<a href="issue.url">
{{ issue.datetime }}
</a>
</span>
<span>
by
<a href="issue.profile">
{{ issue.author }}
</a>
</span>
</div>
<div class="item-time">
<span class="hours" v-if="issue.totalTime.hours">
{{ issue.totalTime.hours }}
<abbr title="Hours">hr</abbr>
</span>
<span class="minutes" v-if="issue.totalTime.minutes">
{{ issue.totalTime.minutes }}
<abbr title="Minutes">mins</abbr>
</span>
</div>
`,
});
})(window.gl || (window.gl = {}));
app/views/projects/cycle_analytics/show.html.haml
View file @
b0d2dffc
...
...
@@ -152,30 +152,6 @@
%li
{
"v-for"
=>
"issue in items"
}
%item-issue-component
{
":issue"
=>
"issue"
}
%script
{
type:
'text/x-template'
,
id:
'item-issue-component'
}
.item-details
%img
.avatar
{
:src
=>
"https://secure.gravatar.com/avatar/3731e7dd4f2b4fa8ae184c0a7519dd58?s=64&d=identicon"
}
/
%h5
.item-title
%a
{
:href
=>
"issue.url"
}
{{ issue.title }}
%a
{
:href
=>
"issue.url"
}
=
'#{{issue.id}}'
%span
Opened
%a
{
:href
=>
"issue.url"
}
{{ issue.datetime }}
%span
by
%a
{
:href
=>
"issue.profile"
}
{{ issue.author }}
.item-time
%span
.hours
{
"v-if"
=>
"issue.totalTime.hours"
}
{{ issue.totalTime.hours }}
%abbr
{
:title
=>
"Hours"
}
hr
%span
.minutes
{
"v-if"
=>
"issue.totalTime.minutes"
}
{{ issue.totalTime.minutes }}
%abbr
{
:title
=>
"Minutes"
}
mins
%script
{
type:
'text/x-template'
,
id:
'item-commit-component'
}
%div
%p
...
...
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