diaspora/app/views/people/_profile_sidebar.html.haml
2010-11-12 06:06:16 +01:00

39 lines
990 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 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
%b #{t('.bio')}
%br
= person.profile.bio
%li
%b #{t('.gender')}
%br
= person.profile.gender
%li
%b #{t('.born')}
%br
= "#{time_ago_in_words(person.profile.birthday)} #{t('ago')}" if @person.profile.birthday
%b.small= person.diaspora_handle