diaspora/app/views/people/_profile_sidebar.html.haml
2010-11-21 16:11:54 -08:00

39 lines
1,023 B
Text

-# Copyright (c) 2010, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
#profile
.profile_photo
= person_image_link(person, :to => :photos)
= action_link(person, is_contact)
%ul
/- if @posts.first
/%li
/%i= t(".last_seen",:how_long_ago => how_long_ago(@posts.first))
- if is_contact
%li
%ul#aspects_for_person
%b= t('.in_aspects')
%br
- for aspect in @aspects_with_person
%li= link_to aspect.name, aspect
-if is_contact || person == current_user.person
%ul#profile_information
%li
%h3 #{t('.bio')}
= person.profile.bio
%li
.span-4.last
%h3 #{t('.gender')}
= person.profile.gender
.span-4.last
%h3 #{t('.born')}
= "#{time_ago_in_words(person.profile.birthday)} #{t('ago')}" if @person.profile.birthday
%br
%br
%br
%br
%b.small= person.diaspora_handle