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
428f4324
Commit
428f4324
authored
Jan 07, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
f166f2e8
ada8ccdb
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
64 additions
and
13 deletions
+64
-13
app/assets/javascripts/boards/models/list.js
app/assets/javascripts/boards/models/list.js
+1
-0
app/assets/javascripts/diffs/components/commit_item.vue
app/assets/javascripts/diffs/components/commit_item.vue
+25
-8
app/helpers/commits_helper.rb
app/helpers/commits_helper.rb
+1
-1
app/views/admin/users/_user.html.haml
app/views/admin/users/_user.html.haml
+1
-1
app/views/shared/members/_member.html.haml
app/views/shared/members/_member.html.haml
+1
-1
app/views/shared/snippets/_snippet.html.haml
app/views/shared/snippets/_snippet.html.haml
+1
-1
changelogs/unreleased/54311-fix-board-add-label.yml
changelogs/unreleased/54311-fix-board-add-label.yml
+5
-0
changelogs/unreleased/54981-extended-user-centric-tooltips-add-missing-cases.yml
...4981-extended-user-centric-tooltips-add-missing-cases.yml
+5
-0
spec/features/boards/new_issue_spec.rb
spec/features/boards/new_issue_spec.rb
+21
-0
spec/helpers/commits_helper_spec.rb
spec/helpers/commits_helper_spec.rb
+1
-1
spec/javascripts/diffs/components/commit_item_spec.js
spec/javascripts/diffs/components/commit_item_spec.js
+2
-0
No files found.
app/assets/javascripts/boards/models/list.js
View file @
428f4324
...
@@ -257,6 +257,7 @@ class List {
...
@@ -257,6 +257,7 @@ class List {
issue
.
project
=
data
.
project
;
issue
.
project
=
data
.
project
;
issue
.
path
=
data
.
real_path
;
issue
.
path
=
data
.
real_path
;
issue
.
referencePath
=
data
.
reference_path
;
issue
.
referencePath
=
data
.
reference_path
;
issue
.
assignableLabelsEndpoint
=
data
.
assignable_labels_endpoint
;
if
(
this
.
issuesSize
>
1
)
{
if
(
this
.
issuesSize
>
1
)
{
const
moveBeforeId
=
this
.
issues
[
1
].
id
;
const
moveBeforeId
=
this
.
issues
[
1
].
id
;
...
...
app/assets/javascripts/diffs/components/commit_item.vue
View file @
428f4324
...
@@ -5,6 +5,7 @@ import ClipboardButton from '~/vue_shared/components/clipboard_button.vue';
...
@@ -5,6 +5,7 @@ import ClipboardButton from '~/vue_shared/components/clipboard_button.vue';
import
CIIcon
from
'
~/vue_shared/components/ci_icon.vue
'
;
import
CIIcon
from
'
~/vue_shared/components/ci_icon.vue
'
;
import
TimeAgoTooltip
from
'
~/vue_shared/components/time_ago_tooltip.vue
'
;
import
TimeAgoTooltip
from
'
~/vue_shared/components/time_ago_tooltip.vue
'
;
import
CommitPipelineStatus
from
'
~/projects/tree/components/commit_pipeline_status_component.vue
'
;
import
CommitPipelineStatus
from
'
~/projects/tree/components/commit_pipeline_status_component.vue
'
;
import
initUserPopovers
from
'
../../user_popovers
'
;
/**
/**
* CommitItem
* CommitItem
...
@@ -35,20 +36,30 @@ export default {
...
@@ -35,20 +36,30 @@ export default {
},
},
},
},
computed
:
{
computed
:
{
author
()
{
return
this
.
commit
.
author
||
{};
},
authorName
()
{
authorName
()
{
return
(
this
.
commit
.
author
&&
this
.
commit
.
author
.
name
)
||
this
.
commit
.
author_name
;
return
this
.
author
.
name
||
this
.
commit
.
author_name
;
},
authorClass
()
{
return
this
.
author
.
name
?
'
js-user-link
'
:
''
;
},
authorId
()
{
return
this
.
author
.
id
?
this
.
author
.
id
:
''
;
},
},
authorUrl
()
{
authorUrl
()
{
return
(
return
this
.
author
.
web_url
||
`mailto:
${
this
.
commit
.
author_email
}
`
;
(
this
.
commit
.
author
&&
this
.
commit
.
author
.
web_url
)
||
`mailto:
${
this
.
commit
.
author_email
}
`
);
},
},
authorAvatar
()
{
authorAvatar
()
{
return
(
return
this
.
author
.
avatar_url
||
this
.
commit
.
author_gravatar_url
;
(
this
.
commit
.
author
&&
this
.
commit
.
author
.
avatar_url
)
||
this
.
commit
.
author_gravatar_url
);
},
},
},
},
created
()
{
this
.
$nextTick
(()
=>
{
initUserPopovers
(
this
.
$el
.
querySelectorAll
(
'
.js-user-link
'
));
});
},
};
};
</
script
>
</
script
>
...
@@ -81,7 +92,13 @@ export default {
...
@@ -81,7 +92,13 @@ export default {
</button>
</button>
<div
class=
"commiter"
>
<div
class=
"commiter"
>
<a
:href=
"authorUrl"
v-text=
"authorName"
></a>
{{
s__
(
'
CommitWidget|authored
'
)
}}
<a
:href=
"authorUrl"
:class=
"authorClass"
:data-user-id=
"authorId"
v-text=
"authorName"
></a>
{{
s__
(
'
CommitWidget|authored
'
)
}}
<time-ago-tooltip
:time=
"commit.authored_date"
/>
<time-ago-tooltip
:time=
"commit.authored_date"
/>
</div>
</div>
...
...
app/helpers/commits_helper.rb
View file @
428f4324
...
@@ -154,7 +154,7 @@ module CommitsHelper
...
@@ -154,7 +154,7 @@ module CommitsHelper
if
user
.
nil?
if
user
.
nil?
mail_to
(
source_email
,
text
,
link_options
)
mail_to
(
source_email
,
text
,
link_options
)
else
else
link_to
(
text
,
user_path
(
user
),
link_options
)
link_to
(
text
,
user_path
(
user
),
{
class:
"commit-
#{
options
[
:source
]
}
-link js-user-link"
,
data:
{
user_id:
user
.
id
}
}
)
end
end
end
end
...
...
app/views/admin/users/_user.html.haml
View file @
428f4324
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
=
image_tag
avatar_icon_for_user
(
user
),
class:
"avatar"
,
alt:
''
=
image_tag
avatar_icon_for_user
(
user
),
class:
"avatar"
,
alt:
''
.row-main-content
.row-main-content
.user-name.row-title.str-truncated-100
.user-name.row-title.str-truncated-100
=
link_to
user
.
name
,
[
:admin
,
user
]
=
link_to
user
.
name
,
[
:admin
,
user
]
,
class:
"js-user-link"
,
data:
{
user_id:
user
.
id
}
-
if
user
.
blocked?
-
if
user
.
blocked?
%span
.badge.badge-danger
blocked
%span
.badge.badge-danger
blocked
-
if
user
.
note
.
present?
-
if
user
.
note
.
present?
...
...
app/views/shared/members/_member.html.haml
View file @
428f4324
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
-
if
user
-
if
user
=
image_tag
avatar_icon_for_user
(
user
,
40
),
class:
"avatar s40"
,
alt:
''
=
image_tag
avatar_icon_for_user
(
user
,
40
),
class:
"avatar s40"
,
alt:
''
.user-info
.user-info
=
link_to
user
.
name
,
user_path
(
user
),
class:
'member
'
=
link_to
user
.
name
,
user_path
(
user
),
class:
'member
js-user-link'
,
data:
{
user_id:
user
.
id
}
=
user_status
(
user
)
=
user_status
(
user
)
%span
.cgray
=
user
.
to_reference
%span
.cgray
=
user
.
to_reference
...
...
app/views/shared/snippets/_snippet.html.haml
View file @
428f4324
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
#{
snippet
.
to_reference
}
·
#{
snippet
.
to_reference
}
·
authored
#{
time_ago_with_tooltip
(
snippet
.
created_at
,
placement:
'bottom'
,
html_class:
'snippet-created-ago'
)
}
authored
#{
time_ago_with_tooltip
(
snippet
.
created_at
,
placement:
'bottom'
,
html_class:
'snippet-created-ago'
)
}
by
by
=
link_to
user_snippets_path
(
snippet
.
author
)
do
=
link_to
user_snippets_path
(
snippet
.
author
)
,
class:
"js-user-link"
,
data:
{
user_id:
snippet
.
author
.
id
}
do
=
snippet
.
author_name
=
snippet
.
author_name
-
if
link_project
&&
snippet
.
project_id?
-
if
link_project
&&
snippet
.
project_id?
%span
.d-none.d-sm-inline-block
%span
.d-none.d-sm-inline-block
...
...
changelogs/unreleased/54311-fix-board-add-label.yml
0 → 100644
View file @
428f4324
---
title
:
Fix error when creating labels in a new issue in the boards page
merge_request
:
24039
author
:
Ruben Moya
type
:
fixed
changelogs/unreleased/54981-extended-user-centric-tooltips-add-missing-cases.yml
0 → 100644
View file @
428f4324
---
title
:
User Popovers for Commit Infos, Member Lists and Snippets
merge_request
:
24132
author
:
type
:
added
spec/features/boards/new_issue_spec.rb
View file @
428f4324
...
@@ -86,6 +86,27 @@ describe 'Issue Boards new issue', :js do
...
@@ -86,6 +86,27 @@ describe 'Issue Boards new issue', :js do
expect
(
page
).
to
have_selector
(
'.issue-boards-sidebar'
)
expect
(
page
).
to
have_selector
(
'.issue-boards-sidebar'
)
end
end
it
'successfuly loads labels to be added to newly created issue'
do
page
.
within
(
first
(
'.board'
))
do
find
(
'.issue-count-badge-add-button'
).
click
end
page
.
within
(
first
(
'.board-new-issue-form'
))
do
find
(
'.form-control'
).
set
(
'new issue'
)
click_button
'Submit issue'
end
wait_for_requests
page
.
within
(
first
(
'.issue-boards-sidebar'
))
do
find
(
'.labels .edit-link'
).
click
wait_for_requests
expect
(
page
).
to
have_selector
(
'.labels .dropdown-content li a'
)
end
end
end
end
context
'unauthorized user'
do
context
'unauthorized user'
do
...
...
spec/helpers/commits_helper_spec.rb
View file @
428f4324
...
@@ -21,7 +21,7 @@ describe CommitsHelper do
...
@@ -21,7 +21,7 @@ describe CommitsHelper do
expect
(
helper
.
commit_author_link
(
commit
))
expect
(
helper
.
commit_author_link
(
commit
))
.
to
include
(
'Foo <script>'
)
.
to
include
(
'Foo <script>'
)
expect
(
helper
.
commit_author_link
(
commit
,
avatar:
true
))
expect
(
helper
.
commit_author_link
(
commit
,
avatar:
true
))
.
to
include
(
'commit-author-name'
,
'Foo <script>'
)
.
to
include
(
'commit-author-name'
,
'
js-user-link'
,
'
Foo <script>'
)
end
end
end
end
...
...
spec/javascripts/diffs/components/commit_item_spec.js
View file @
428f4324
...
@@ -80,6 +80,8 @@ describe('diffs/components/commit_item', () => {
...
@@ -80,6 +80,8 @@ describe('diffs/components/commit_item', () => {
expect
(
trimText
(
committerElement
.
textContent
)).
toEqual
(
expectedText
);
expect
(
trimText
(
committerElement
.
textContent
)).
toEqual
(
expectedText
);
expect
(
nameElement
).
toHaveAttr
(
'
href
'
,
commit
.
author
.
web_url
);
expect
(
nameElement
).
toHaveAttr
(
'
href
'
,
commit
.
author
.
web_url
);
expect
(
nameElement
).
toHaveText
(
commit
.
author
.
name
);
expect
(
nameElement
).
toHaveText
(
commit
.
author
.
name
);
expect
(
nameElement
).
toHaveClass
(
'
js-user-link
'
);
expect
(
nameElement
.
dataset
.
userId
).
toEqual
(
commit
.
author
.
id
.
toString
());
});
});
describe
(
'
without commit description
'
,
()
=>
{
describe
(
'
without commit 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