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
Léo-Paul Géneau
gitlab-ce
Commits
40f51c8e
Commit
40f51c8e
authored
May 05, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] Fix FE conflicts with master
parent
5004579b
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
5 additions
and
36 deletions
+5
-36
app/assets/javascripts/boards/components/issue_card_inner.js
app/assets/javascripts/boards/components/issue_card_inner.js
+1
-1
app/assets/javascripts/boards/models/assignee.js
app/assets/javascripts/boards/models/assignee.js
+0
-9
app/assets/javascripts/boards/models/issue.js
app/assets/javascripts/boards/models/issue.js
+1
-8
app/assets/javascripts/sidebar/components/assignees/assignees.js
...ets/javascripts/sidebar/components/assignees/assignees.js
+1
-1
config/webpack.config.js
config/webpack.config.js
+0
-5
spec/javascripts/boards/issue_card_spec.js
spec/javascripts/boards/issue_card_spec.js
+2
-2
spec/support/time_tracking_shared_examples.rb
spec/support/time_tracking_shared_examples.rb
+0
-10
No files found.
app/assets/javascripts/boards/components/issue_card_inner.js
View file @
40f51c8e
...
@@ -157,7 +157,7 @@ gl.issueBoards.IssueCardInner = Vue.extend({
...
@@ -157,7 +157,7 @@ gl.issueBoards.IssueCardInner = Vue.extend({
>
>
<img
<img
class="avatar avatar-inline s20"
class="avatar avatar-inline s20"
:src="assignee.avatar
Url
"
:src="assignee.avatar"
width="20"
width="20"
height="20"
height="20"
:alt="avatarUrlTitle(assignee)"
:alt="avatarUrlTitle(assignee)"
...
...
app/assets/javascripts/boards/models/assignee.js
View file @
40f51c8e
<<<<<<<
HEAD
:
app
/
assets
/
javascripts
/
boards
/
models
/
assignee
.
js
/* eslint-disable no-unused-vars */
/* eslint-disable no-unused-vars */
class
ListAssignee
{
class
ListAssignee
{
constructor
(
user
)
{
this
.
id
=
user
.
id
;
this
.
name
=
user
.
name
;
this
.
username
=
user
.
username
;
this
.
avatarUrl
=
user
.
avatar_url
;
=======
class
ListUser
{
constructor
(
user
,
defaultAvatar
)
{
constructor
(
user
,
defaultAvatar
)
{
this
.
id
=
user
.
id
;
this
.
id
=
user
.
id
;
this
.
name
=
user
.
name
;
this
.
name
=
user
.
name
;
this
.
username
=
user
.
username
;
this
.
username
=
user
.
username
;
this
.
avatar
=
user
.
avatar_url
||
defaultAvatar
;
this
.
avatar
=
user
.
avatar_url
||
defaultAvatar
;
>>>>>>>
10
c1bf2d77fd0ab21309d0b136cbc0ac11f56c77
:
app
/
assets
/
javascripts
/
boards
/
models
/
user
.
js
}
}
}
}
...
...
app/assets/javascripts/boards/models/issue.js
View file @
40f51c8e
...
@@ -18,13 +18,6 @@ class ListIssue {
...
@@ -18,13 +18,6 @@ class ListIssue {
this
.
selected
=
false
;
this
.
selected
=
false
;
this
.
position
=
obj
.
relative_position
||
Infinity
;
this
.
position
=
obj
.
relative_position
||
Infinity
;
<<<<<<<
HEAD
=======
if
(
obj
.
assignee
)
{
this
.
assignee
=
new
ListUser
(
obj
.
assignee
,
defaultAvatar
);
}
>>>>>>>
10
c1bf2d77fd0ab21309d0b136cbc0ac11f56c77
if
(
obj
.
milestone
)
{
if
(
obj
.
milestone
)
{
this
.
milestone
=
new
ListMilestone
(
obj
.
milestone
);
this
.
milestone
=
new
ListMilestone
(
obj
.
milestone
);
}
}
...
@@ -33,7 +26,7 @@ class ListIssue {
...
@@ -33,7 +26,7 @@ class ListIssue {
this
.
labels
.
push
(
new
ListLabel
(
label
));
this
.
labels
.
push
(
new
ListLabel
(
label
));
});
});
this
.
assignees
=
obj
.
assignees
.
map
(
a
=>
new
ListAssignee
(
a
));
this
.
assignees
=
obj
.
assignees
.
map
(
a
=>
new
ListAssignee
(
a
,
defaultAvatar
));
}
}
addLabel
(
label
)
{
addLabel
(
label
)
{
...
...
app/assets/javascripts/sidebar/components/assignees/assignees.js
View file @
40f51c8e
...
@@ -84,7 +84,7 @@ export default {
...
@@ -84,7 +84,7 @@ export default {
return
!
this
.
showLess
||
(
index
<
this
.
defaultRenderCount
&&
this
.
showLess
);
return
!
this
.
showLess
||
(
index
<
this
.
defaultRenderCount
&&
this
.
showLess
);
},
},
avatarUrl
(
user
)
{
avatarUrl
(
user
)
{
return
user
.
avatar
Url
||
user
.
avatar_url
;
return
user
.
avatar
||
user
.
avatar_url
;
},
},
assigneeUrl
(
user
)
{
assigneeUrl
(
user
)
{
return
`
${
this
.
rootPath
}${
user
.
username
}
`
;
return
`
${
this
.
rootPath
}${
user
.
username
}
`
;
...
...
config/webpack.config.js
View file @
40f51c8e
...
@@ -34,11 +34,6 @@ var config = {
...
@@ -34,11 +34,6 @@ var config = {
graphs
:
'
./graphs/graphs_bundle.js
'
,
graphs
:
'
./graphs/graphs_bundle.js
'
,
group
:
'
./group.js
'
,
group
:
'
./group.js
'
,
groups_list
:
'
./groups_list.js
'
,
groups_list
:
'
./groups_list.js
'
,
<<<<<<<
HEAD
=======
issuable
:
'
./issuable/issuable_bundle.js
'
,
locale
:
'
./locale/index.js
'
,
>>>>>>>
10
c1bf2d77fd0ab21309d0b136cbc0ac11f56c77
issue_show
:
'
./issue_show/index.js
'
,
issue_show
:
'
./issue_show/index.js
'
,
locale
:
'
./locale/index.js
'
,
locale
:
'
./locale/index.js
'
,
main
:
'
./main.js
'
,
main
:
'
./main.js
'
,
...
...
spec/javascripts/boards/issue_card_spec.js
View file @
40f51c8e
...
@@ -148,11 +148,11 @@ describe('Issue card component', () => {
...
@@ -148,11 +148,11 @@ describe('Issue card component', () => {
describe
(
'
assignee default avatar
'
,
()
=>
{
describe
(
'
assignee default avatar
'
,
()
=>
{
beforeEach
((
done
)
=>
{
beforeEach
((
done
)
=>
{
component
.
issue
.
assignee
=
new
ListUser
({
component
.
issue
.
assignee
s
=
[
new
ListAssignee
({
id
:
1
,
id
:
1
,
name
:
'
testing 123
'
,
name
:
'
testing 123
'
,
username
:
'
test
'
,
username
:
'
test
'
,
},
'
default_avatar
'
);
},
'
default_avatar
'
)
]
;
Vue
.
nextTick
(
done
);
Vue
.
nextTick
(
done
);
});
});
...
...
spec/support/time_tracking_shared_examples.rb
View file @
40f51c8e
...
@@ -37,12 +37,7 @@ shared_examples 'issuable time tracker' do
...
@@ -37,12 +37,7 @@ shared_examples 'issuable time tracker' do
submit_time
(
'/estimate 3w 1d 1h'
)
submit_time
(
'/estimate 3w 1d 1h'
)
submit_time
(
'/remove_estimate'
)
submit_time
(
'/remove_estimate'
)
<<<<<<<
HEAD
page
.
within
'.time-tracking-component-wrap'
do
page
.
within
'.time-tracking-component-wrap'
do
=======
wait_for_ajax
page
.
within
'#issuable-time-tracker'
do
>>>>>>>
10
c1bf2d77fd0ab21309d0b136cbc0ac11f56c77
expect
(
page
).
to
have_content
'No estimate or time spent'
expect
(
page
).
to
have_content
'No estimate or time spent'
end
end
end
end
...
@@ -51,12 +46,7 @@ shared_examples 'issuable time tracker' do
...
@@ -51,12 +46,7 @@ shared_examples 'issuable time tracker' do
submit_time
(
'/spend 3w 1d 1h'
)
submit_time
(
'/spend 3w 1d 1h'
)
submit_time
(
'/remove_time_spent'
)
submit_time
(
'/remove_time_spent'
)
<<<<<<<
HEAD
page
.
within
'.time-tracking-component-wrap'
do
page
.
within
'.time-tracking-component-wrap'
do
=======
wait_for_ajax
page
.
within
'#issuable-time-tracker'
do
>>>>>>>
10
c1bf2d77fd0ab21309d0b136cbc0ac11f56c77
expect
(
page
).
to
have_content
'No estimate or time spent'
expect
(
page
).
to
have_content
'No estimate or time spent'
end
end
end
end
...
...
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