Display gravatar if no profile image is present
This commit is contained in:
@ -26,6 +26,8 @@
|
|||||||
a.dropdown-toggle(href='#', data-toggle='dropdown')
|
a.dropdown-toggle(href='#', data-toggle='dropdown')
|
||||||
if user.profile.picture
|
if user.profile.picture
|
||||||
img.profile-image(src='#{user.profile.picture}')
|
img.profile-image(src='#{user.profile.picture}')
|
||||||
|
else
|
||||||
|
img.profile-image(src='#{user.gravatar()}')
|
||||||
| #{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