Set default avatar url properly
This commit is contained in:
parent
9559d55400
commit
0e86df8da0
|
@ -39,6 +39,6 @@ email = (email) ->
|
||||||
"mailto:#{email}"
|
"mailto:#{email}"
|
||||||
|
|
||||||
gravatarImage = (email, size) ->
|
gravatarImage = (email, size) ->
|
||||||
"https://www.gravatar.com/avatar/#{md5(email)}?s=#{size}&d=#{encodeURIComponent(config.avatar_default_url)}"
|
"https://www.gravatar.com/avatar/#{md5(email)}?s=#{size}&d=#{encodeURIComponent(config.avatarDefaultUrl)}"
|
||||||
|
|
||||||
`export { plainTextLog, githubPullRequest, githubCommit, githubRepo, githubWatchers, githubNetwork, githubAdmin, statusImage, ccXml, email, gravatarImage }`
|
`export { plainTextLog, githubPullRequest, githubCommit, githubRepo, githubWatchers, githubNetwork, githubAdmin, statusImage, ccXml, email, gravatarImage }`
|
||||||
|
|
|
@ -28,7 +28,8 @@ module.exports = function(environment) {
|
||||||
pro: false,
|
pro: false,
|
||||||
enterprise: false,
|
enterprise: false,
|
||||||
endpoints: {},
|
endpoints: {},
|
||||||
intervals: { updateTimes: 1000 }
|
intervals: { updateTimes: 1000 },
|
||||||
|
avatarDefaultUrl: 'https://travis-ci.org/images/ui/default-avatar.png'
|
||||||
};
|
};
|
||||||
|
|
||||||
if (typeof process !== 'undefined') {
|
if (typeof process !== 'undefined') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user