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
baf61887
Commit
baf61887
authored
Nov 14, 2018
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-11-14
parents
51a80a31
f76b3106
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
7 deletions
+37
-7
app/assets/stylesheets/pages/notes.scss
app/assets/stylesheets/pages/notes.scss
+20
-0
app/helpers/profiles_helper.rb
app/helpers/profiles_helper.rb
+1
-1
app/views/discussions/_discussion.html.haml
app/views/discussions/_discussion.html.haml
+4
-4
changelogs/unreleased/dm-commit-email-select-options.yml
changelogs/unreleased/dm-commit-email-select-options.yml
+5
-0
spec/helpers/profiles_helper_spec.rb
spec/helpers/profiles_helper_spec.rb
+7
-2
No files found.
app/assets/stylesheets/pages/notes.scss
View file @
baf61887
...
@@ -914,3 +914,23 @@ $note-form-margin-left: 72px;
...
@@ -914,3 +914,23 @@ $note-form-margin-left: 72px;
}
}
}
}
}
}
//This needs to be deleted when Snippet/Commit comments are convered to Vue
// See https://gitlab.com/gitlab-org/gitlab-ce/issues/53918#note_117038785
.unstyled-comments
{
.discussion-header
{
padding
:
$gl-padding
;
border-bottom
:
1px
solid
$border-color
;
}
.note-wrapper.outlined
{
margin
:
0
;
border
:
0
;
border-radius
:
0
;
}
.discussion-form-container
{
padding
:
$gl-padding
;
}
}
app/helpers/profiles_helper.rb
View file @
baf61887
...
@@ -7,7 +7,7 @@ module ProfilesHelper
...
@@ -7,7 +7,7 @@ module ProfilesHelper
[
[
[
s_
(
"Profiles|Use a private email - %{email}"
).
html_safe
%
{
email:
private_email
},
Gitlab
::
PrivateCommitEmail
::
TOKEN
],
[
s_
(
"Profiles|Use a private email - %{email}"
).
html_safe
%
{
email:
private_email
},
Gitlab
::
PrivateCommitEmail
::
TOKEN
],
verified_emails
*
verified_emails
]
]
end
end
...
...
app/views/discussions/_discussion.html.haml
View file @
baf61887
-
expanded
=
discussion
.
expanded?
-
expanded
=
discussion
.
expanded?
%li
.note.note-discussion.timeline-entry
%li
.note.note-discussion.timeline-entry
.unstyled-comments
.timeline-entry-inner
.timeline-entry-inner
.timeline-icon
=
link_to
user_path
(
discussion
.
author
)
do
=
image_tag
avatar_icon_for_user
(
discussion
.
author
),
class:
"avatar s40"
.timeline-content
.timeline-content
.discussion.js-toggle-container
{
data:
{
discussion_id:
discussion
.
id
}
}
.discussion.js-toggle-container
{
data:
{
discussion_id:
discussion
.
id
}
}
.discussion-header
.discussion-header
.timeline-icon
=
link_to
user_path
(
discussion
.
author
)
do
=
image_tag
avatar_icon_for_user
(
discussion
.
author
),
class:
"avatar s40"
.discussion-actions
.discussion-actions
%button
.note-action-button.discussion-toggle-button.js-toggle-button
{
type:
"button"
,
class:
(
"js-toggle-lazy-diff"
unless
expanded
)
}
%button
.note-action-button.discussion-toggle-button.js-toggle-button
{
type:
"button"
,
class:
(
"js-toggle-lazy-diff"
unless
expanded
)
}
-
if
expanded
-
if
expanded
...
...
changelogs/unreleased/dm-commit-email-select-options.yml
0 → 100644
View file @
baf61887
---
title
:
Fix bug causing not all emails to show up in commit email selectbox
merge_request
:
author
:
type
:
fixed
spec/helpers/profiles_helper_spec.rb
View file @
baf61887
...
@@ -4,12 +4,17 @@ describe ProfilesHelper do
...
@@ -4,12 +4,17 @@ describe ProfilesHelper do
describe
'#commit_email_select_options'
do
describe
'#commit_email_select_options'
do
it
'returns an array with private commit email along with all the verified emails'
do
it
'returns an array with private commit email along with all the verified emails'
do
user
=
create
(
:user
)
user
=
create
(
:user
)
create
(
:email
,
user:
user
)
confirmed_email1
=
create
(
:email
,
:confirmed
,
user:
user
)
confirmed_email2
=
create
(
:email
,
:confirmed
,
user:
user
)
private_email
=
user
.
private_commit_email
private_email
=
user
.
private_commit_email
verified_emails
=
user
.
verified_emails
-
[
private_email
]
emails
=
[
emails
=
[
[
"Use a private email -
#{
private_email
}
"
,
Gitlab
::
PrivateCommitEmail
::
TOKEN
],
[
"Use a private email -
#{
private_email
}
"
,
Gitlab
::
PrivateCommitEmail
::
TOKEN
],
verified_emails
user
.
email
,
confirmed_email1
.
email
,
confirmed_email2
.
email
]
]
expect
(
helper
.
commit_email_select_options
(
user
)).
to
match_array
(
emails
)
expect
(
helper
.
commit_email_select_options
(
user
)).
to
match_array
(
emails
)
...
...
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