Display gravatar if no profile image is present

pull/2/head
Sahat Yalkabov 2014-02-03 19:12:21 -05:00
parent 153d7254ad
commit 0b89b41376
1 changed files with 2 additions and 0 deletions

View File

@ -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