Display gravatar if no profile image is present
parent
153d7254ad
commit
0b89b41376
|
@ -26,6 +26,8 @@
|
|||
a.dropdown-toggle(href='#', data-toggle='dropdown')
|
||||
if user.profile.picture
|
||||
img.profile-image(src='#{user.profile.picture}')
|
||||
else
|
||||
img.profile-image(src='#{user.gravatar()}')
|
||||
| #{user.profile.name || user.email || user.id}
|
||||
i.caret
|
||||
ul.dropdown-menu
|
||||
|
|
Loading…
Reference in New Issue