Pass size of 60px to gravatar function from navbar. Since it won't be larger than that, no point loading a larger 200px image and then shrinking it. 60px already takes into consideration retina displays. The actual size of avatar is 30px.

This commit is contained in:
Sahat Yalkabov
2014-02-07 09:53:48 -05:00
parent 116378642f
commit fab3c1455d

View File

@ -27,7 +27,7 @@
if user.profile.picture
img.profile-image(src='#{user.profile.picture}')
else
img.profile-image(src='#{user.gravatar()}')
img.profile-image(src='#{user.gravatar(60)}')
| #{user.profile.name || user.email || user.id} 
i.caret
ul.dropdown-menu