Skip to content
Extraits de code Groupes Projets
Valider 96b90712 rédigé par maxwell's avatar maxwell
Parcourir les fichiers

only show profile fields if they are filled out.

parent 13407f70
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -38,15 +38,21 @@ ...@@ -38,15 +38,21 @@
-if (contact && !contact.pending?) || person == current_user.person || @incoming_request -if (contact && !contact.pending?) || person == current_user.person || @incoming_request
%ul#profile_information %ul#profile_information
%li %li
%h3 #{t('.bio')} - unless person.profile.bio.blank?
= markdownify(person.profile.bio, :newlines => true) %h3
=t('.bio')
= markdownify(person.profile.bio, :newlines => true)
%li.span-8.last %li.span-8.last
.span-4 .span-4
%h3 #{t('.gender')} - unless person.profile.gender.blank?
= person.profile.gender %h3
=t('.gender')
= person.profile.gender
.span-4.last .span-4.last
%h3 #{t('.born')} - unless person.profile.birthday.blank?
= t('ago', :time => time_ago_in_words(person.profile.birthday)) if @person.profile.birthday %h3
=t('.born')
= t('ago', :time => time_ago_in_words(person.profile.birthday)) if @person.profile.birthday
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter