diff --git a/app/views/people/_profile_sidebar.html.haml b/app/views/people/_profile_sidebar.html.haml index ce85cc2cef72ec261b362abff9a3c63bc7710b80..892d151461898a9878358813d47235c0a69c4833 100644 --- a/app/views/people/_profile_sidebar.html.haml +++ b/app/views/people/_profile_sidebar.html.haml @@ -38,15 +38,21 @@ -if (contact && !contact.pending?) || person == current_user.person || @incoming_request %ul#profile_information %li - %h3 #{t('.bio')} - = markdownify(person.profile.bio, :newlines => true) + - unless person.profile.bio.blank? + %h3 + =t('.bio') + = markdownify(person.profile.bio, :newlines => true) %li.span-8.last .span-4 - %h3 #{t('.gender')} - = person.profile.gender + - unless person.profile.gender.blank? + %h3 + =t('.gender') + = person.profile.gender .span-4.last - %h3 #{t('.born')} - = t('ago', :time => time_ago_in_words(person.profile.birthday)) if @person.profile.birthday + - unless person.profile.birthday.blank? + %h3 + =t('.born') + = t('ago', :time => time_ago_in_words(person.profile.birthday)) if @person.profile.birthday