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() {
|
||||
var md5 = crypto.createHash('md5');
|
||||
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);
|
||||
|
@ -5,8 +5,8 @@ block content
|
||||
h3 Profile Information
|
||||
form.form-horizontal(action='/account/profile', method='POST')
|
||||
.row
|
||||
.col-xs-2
|
||||
img(src="#{user.gravatar()}")
|
||||
.col-md-2.col-xs-4
|
||||
img(src="#{user.gravatar()}", class='profile')
|
||||
small Change your photo at
|
||||
a(href="http://gravatar.com") Gravatar
|
||||
.col-xs-10
|
||||
|
Reference in New Issue
Block a user