From e65965986187c1e024293d9950f6aa394faeb821 Mon Sep 17 00:00:00 2001 From: Henrik Hodne Date: Wed, 22 May 2013 13:09:24 +0200 Subject: [PATCH] Download 2x images from Gravatar This will make them look nicer on Retina screens. We may want to make them even bigger if people are increasing the size of the page on Travis, but doing that causes all kinds of alignment issues, so it's not necessary to do now, I think. --- assets/scripts/app/views/profile.coffee | 2 +- assets/scripts/app/views/top.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/scripts/app/views/profile.coffee b/assets/scripts/app/views/profile.coffee index 234fbde5..b704a2b1 100644 --- a/assets/scripts/app/views/profile.coffee +++ b/assets/scripts/app/views/profile.coffee @@ -41,7 +41,7 @@ Travis.reopen userBinding: 'controller.user' gravatarUrl: (-> - "#{location.protocol}//www.gravatar.com/avatar/#{@get('user.gravatarId')}?s=48&d=mm" + "#{location.protocol}//www.gravatar.com/avatar/#{@get('user.gravatarId')}?s=96&d=mm" ).property('user.gravatarId') locale: (-> diff --git a/assets/scripts/app/views/top.coffee b/assets/scripts/app/views/top.coffee index bb674845..3b6befc5 100644 --- a/assets/scripts/app/views/top.coffee +++ b/assets/scripts/app/views/top.coffee @@ -10,7 +10,7 @@ ).property('user.login', 'user.name') gravatarUrl: (-> - "#{location.protocol}//www.gravatar.com/avatar/#{@get('user.gravatarId')}?s=24&d=mm" + "#{location.protocol}//www.gravatar.com/avatar/#{@get('user.gravatarId')}?s=48&d=mm" ).property('user.gravatarId') # hrm. how to parametrize bindAttr?