retro default, better size for xs

This commit is contained in:
Daniel Mills
2014-02-03 18:03:12 -05:00
parent f5ecfc507c
commit 85c3e8e83b
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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