fix a strange edge case on public portfolio pages

This commit is contained in:
Michael Q Larson
2015-02-04 16:42:54 -08:00
parent 1f36c26264
commit 829ace0365

View File

@ -11,7 +11,10 @@ block content
if picture if picture
img.img-center.img-responsive.public-profile-img(src=picture) img.img-center.img-responsive.public-profile-img(src=picture)
else else
if (user)
img.img-center.img-responsive.public-profile-img(src='#{user.gravatar(200)}') img.img-center.img-responsive.public-profile-img(src='#{user.gravatar(200)}')
else
img.img-center.img-responsive.public-profile-img(src='https://gravatar.com/avatar/d704cc72a5cd0bfa482ee71f4d557daa?s=200&d=retro')
h1.text-center.negative-5 h1.text-center.negative-5
- if (twitterHandle) - if (twitterHandle)
a.ion-social-twitter.text-primary(title="@#{username}'s Twitter Profile", href="http://twitter.com/#{twitterHandle}", target='_blank') a.ion-social-twitter.text-primary(title="@#{username}'s Twitter Profile", href="http://twitter.com/#{twitterHandle}", target='_blank')