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
09e55e51
Commit
09e55e51
authored
Feb 15, 2018
by
Andreas Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use more specific avatar_icon_for_user in EE.
parent
187af714
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
ee/app/helpers/epics_helper.rb
ee/app/helpers/epics_helper.rb
+1
-1
ee/app/views/notify/approved_merge_request_email.html.haml
ee/app/views/notify/approved_merge_request_email.html.haml
+3
-3
ee/app/views/notify/unapproved_merge_request_email.html.haml
ee/app/views/notify/unapproved_merge_request_email.html.haml
+3
-3
ee/spec/helpers/epics_helper_spec.rb
ee/spec/helpers/epics_helper_spec.rb
+1
-1
No files found.
ee/app/helpers/epics_helper.rb
View file @
09e55e51
...
...
@@ -8,7 +8,7 @@ module EpicsHelper
name:
author
.
name
,
url:
user_path
(
author
),
username:
"@
#{
author
.
username
}
"
,
src:
avatar_icon
(
@epic
.
author
)
src:
avatar_icon
_for_user
(
@epic
.
author
)
},
start_date:
@epic
.
start_date
,
end_date:
@epic
.
end_date
...
...
ee/app/views/notify/approved_merge_request_email.html.haml
View file @
09e55e51
...
...
@@ -79,7 +79,7 @@
%span
{
style:
"font-weight: 600;color:#333333;"
}
Merge request
%a
{
href:
merge_request_url
(
@merge_request
),
style:
"font-weight: 600;color:#3777b0;text-decoration:none"
}=
@merge_request
.
to_reference
%span
was approved by
%img
.avatar
{
height:
"24"
,
src:
avatar_icon
(
@approved_by
,
24
,
only_path:
false
),
style:
"border-radius:12px;margin:-7px 0 -7px 3px;"
,
width:
"24"
,
alt:
"Avatar"
}
/
%img
.avatar
{
height:
"24"
,
src:
avatar_icon
_for_user
(
@approved_by
,
24
,
only_path:
false
),
style:
"border-radius:12px;margin:-7px 0 -7px 3px;"
,
width:
"24"
,
alt:
"Avatar"
}
/
%a
.muted
{
href:
user_url
(
@approved_by
),
style:
"color:#333333;text-decoration:none;"
}
=
@approved_by
.
name
%tr
.spacer
...
...
@@ -117,7 +117,7 @@
%tbody
%tr
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;vertical-align:middle;padding-right:5px;"
}
%img
.avatar
{
height:
"24"
,
src:
avatar_icon
(
@merge_request
.
author
,
24
,
only_path:
false
),
style:
"display:block;border-radius:12px;margin:-2px 0;"
,
width:
"24"
,
alt:
"Avatar"
}
/
%img
.avatar
{
height:
"24"
,
src:
avatar_icon
_for_user
(
@merge_request
.
author
,
24
,
only_path:
false
),
style:
"display:block;border-radius:12px;margin:-2px 0;"
,
width:
"24"
,
alt:
"Avatar"
}
/
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;vertical-align:middle;"
}
%a
.muted
{
href:
user_url
(
@merge_request
.
author
),
style:
"color:#333333;text-decoration:none;"
}
=
@merge_request
.
author
.
name
...
...
@@ -130,7 +130,7 @@
%tbody
%tr
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;vertical-align:middle;padding-right:5px;"
}
%img
.avatar
{
height:
"24"
,
src:
avatar_icon
(
@merge_request
.
assignee
,
24
,
only_path:
false
),
style:
"display:block;border-radius:12px;margin:-2px 0;"
,
width:
"24"
,
alt:
"Avatar"
}
/
%img
.avatar
{
height:
"24"
,
src:
avatar_icon
_for_user
(
@merge_request
.
assignee
,
24
,
only_path:
false
),
style:
"display:block;border-radius:12px;margin:-2px 0;"
,
width:
"24"
,
alt:
"Avatar"
}
/
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;vertical-align:middle;"
}
%a
.muted
{
href:
user_url
(
@merge_request
.
assignee
),
style:
"color:#333333;text-decoration:none;"
}
=
@merge_request
.
assignee
.
name
...
...
ee/app/views/notify/unapproved_merge_request_email.html.haml
View file @
09e55e51
...
...
@@ -79,7 +79,7 @@
%span
{
style:
"font-weight: 600;color:#333333;"
}
Merge request
%a
{
href:
merge_request_url
(
@merge_request
),
style:
"font-weight: 600;color:#3777b0;text-decoration:none"
}=
@merge_request
.
to_reference
%span
was unapproved by
%img
.avatar
{
height:
"24"
,
src:
avatar_icon
(
@unapproved_by
,
24
),
style:
"border-radius:12px;margin:-7px 0 -7px 3px;"
,
width:
"24"
,
alt:
"Avatar"
}
/
%img
.avatar
{
height:
"24"
,
src:
avatar_icon
_for_user
(
@unapproved_by
,
24
),
style:
"border-radius:12px;margin:-7px 0 -7px 3px;"
,
width:
"24"
,
alt:
"Avatar"
}
/
%a
.muted
{
href:
user_url
(
@unapproved_by
),
style:
"color:#333333;text-decoration:none;"
}
=
@unapproved_by
.
name
%tr
.spacer
...
...
@@ -117,7 +117,7 @@
%tbody
%tr
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;vertical-align:middle;padding-right:5px;"
}
%img
.avatar
{
height:
"24"
,
src:
avatar_icon
(
@merge_request
.
author
,
24
),
style:
"display:block;border-radius:12px;margin:-2px 0;"
,
width:
"24"
,
alt:
"Avatar"
}
/
%img
.avatar
{
height:
"24"
,
src:
avatar_icon
_for_user
(
@merge_request
.
author
,
24
),
style:
"display:block;border-radius:12px;margin:-2px 0;"
,
width:
"24"
,
alt:
"Avatar"
}
/
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;vertical-align:middle;"
}
%a
.muted
{
href:
user_url
(
@merge_request
.
author
),
style:
"color:#333333;text-decoration:none;"
}
=
@merge_request
.
author
.
name
...
...
@@ -128,7 +128,7 @@
%tbody
%tr
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;vertical-align:middle;padding-right:5px;"
}
%img
.avatar
{
height:
"24"
,
src:
avatar_icon
(
@merge_request
.
assignee
,
24
),
style:
"display:block;border-radius:12px;margin:-2px 0;"
,
width:
"24"
,
alt:
"Avatar"
}
/
%img
.avatar
{
height:
"24"
,
src:
avatar_icon
_for_user
(
@merge_request
.
assignee
,
24
),
style:
"display:block;border-radius:12px;margin:-2px 0;"
,
width:
"24"
,
alt:
"Avatar"
}
/
%td
{
style:
"font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:1.4;vertical-align:middle;"
}
%a
.muted
{
href:
user_url
(
@merge_request
.
assignee
),
style:
"color:#333333;text-decoration:none;"
}
=
@merge_request
.
assignee
.
name
...
...
ee/spec/helpers/epics_helper_spec.rb
View file @
09e55e51
...
...
@@ -13,7 +13,7 @@ describe EpicsHelper do
'name'
=>
user
.
name
,
'url'
=>
"/
#{
user
.
username
}
"
,
'username'
=>
"@
#{
user
.
username
}
"
,
'src'
=>
"
#{
avatar_icon
(
user
)
}
"
'src'
=>
"
#{
avatar_icon
_for_user
(
user
)
}
"
})
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