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:
@ -27,7 +27,7 @@
|
|||||||
if user.profile.picture
|
if user.profile.picture
|
||||||
img.profile-image(src='#{user.profile.picture}')
|
img.profile-image(src='#{user.profile.picture}')
|
||||||
else
|
else
|
||||||
img.profile-image(src='#{user.gravatar()}')
|
img.profile-image(src='#{user.gravatar(60)}')
|
||||||
| #{user.profile.name || user.email || user.id}
|
| #{user.profile.name || user.email || user.id}
|
||||||
i.caret
|
i.caret
|
||||||
ul.dropdown-menu
|
ul.dropdown-menu
|
||||||
|
Reference in New Issue
Block a user