From 96b907122be9e82fb195d05cf55bbc60ea6b534e Mon Sep 17 00:00:00 2001 From: maxwell <maxwell@joindiaspora.com> Date: Fri, 17 Dec 2010 17:40:08 -0800 Subject: [PATCH] only show profile fields if they are filled out. --- app/views/people/_profile_sidebar.html.haml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/app/views/people/_profile_sidebar.html.haml b/app/views/people/_profile_sidebar.html.haml index ce85cc2cef..892d151461 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 -- GitLab