retro default, better size for xs
This commit is contained in:
@ -52,7 +52,7 @@ userSchema.methods.comparePassword = function(candidatePassword, cb) {
|
|||||||
userSchema.methods.gravatar = function() {
|
userSchema.methods.gravatar = function() {
|
||||||
var md5 = crypto.createHash('md5');
|
var md5 = crypto.createHash('md5');
|
||||||
md5.update(this.email);
|
md5.update(this.email);
|
||||||
return 'https://gravatar.com/avatar/' + md5.digest('hex').toString() + '?s=200';
|
return 'https://gravatar.com/avatar/' + md5.digest('hex').toString() + '?s=200&d=retro';
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = mongoose.model('User', userSchema);
|
module.exports = mongoose.model('User', userSchema);
|
||||||
|
@ -5,8 +5,8 @@ block content
|
|||||||
h3 Profile Information
|
h3 Profile Information
|
||||||
form.form-horizontal(action='/account/profile', method='POST')
|
form.form-horizontal(action='/account/profile', method='POST')
|
||||||
.row
|
.row
|
||||||
.col-xs-2
|
.col-md-2.col-xs-4
|
||||||
img(src="#{user.gravatar()}")
|
img(src="#{user.gravatar()}", class='profile')
|
||||||
small Change your photo at
|
small Change your photo at
|
||||||
a(href="http://gravatar.com") Gravatar
|
a(href="http://gravatar.com") Gravatar
|
||||||
.col-xs-10
|
.col-xs-10
|
||||||
|
Reference in New Issue
Block a user