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
Jérome Perrin
gitlab-ce
Commits
9f2183f9
Commit
9f2183f9
authored
May 22, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7002 from olafmandel/user_avatar_in_relative_root
Fix avatar URLs in JS-lists for relative_url_root
parents
94f8e801
c18e2778
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/project_users_select.js.coffee
app/assets/javascripts/project_users_select.js.coffee
+1
-1
app/assets/javascripts/users_select.js.coffee
app/assets/javascripts/users_select.js.coffee
+1
-1
No files found.
app/assets/javascripts/project_users_select.js.coffee
View file @
9f2183f9
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
projectUserFormatResult
:
(
user
)
->
projectUserFormatResult
:
(
user
)
->
if
user
.
avatar_url
if
user
.
avatar_url
avatar
=
user
.
avatar_url
avatar
=
gon
.
relative_url_root
+
user
.
avatar_url
else
if
gon
.
gravatar_enabled
else
if
gon
.
gravatar_enabled
avatar
=
gon
.
gravatar_url
avatar
=
gon
.
gravatar_url
avatar
=
avatar
.
replace
(
'%{hash}'
,
md5
(
user
.
email
))
avatar
=
avatar
.
replace
(
'%{hash}'
,
md5
(
user
.
email
))
...
...
app/assets/javascripts/users_select.js.coffee
View file @
9f2183f9
$
->
$
->
userFormatResult
=
(
user
)
->
userFormatResult
=
(
user
)
->
if
user
.
avatar_url
if
user
.
avatar_url
avatar
=
user
.
avatar_url
avatar
=
gon
.
relative_url_root
+
user
.
avatar_url
else
if
gon
.
gravatar_enabled
else
if
gon
.
gravatar_enabled
avatar
=
gon
.
gravatar_url
avatar
=
gon
.
gravatar_url
avatar
=
avatar
.
replace
(
'%{hash}'
,
md5
(
user
.
email
))
avatar
=
avatar
.
replace
(
'%{hash}'
,
md5
(
user
.
email
))
...
...
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