diaspora/app/views/people/show.html.haml
2010-11-05 14:28:39 -07:00

86 lines
2.2 KiB
Text

-# Copyright (c) 2010, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
- content_for :page_title do
profile
.span-4.append-1.last
#profile
.profile_photo
= person_image_link(@person, :to => :photos)
%ul
-unless @posts.first.nil?
%li
%b.small= @person.diaspora_handle
%li
%i= t(".last_seen",:how_long_ago => how_long_ago(@posts.first))
- if @is_contact
%li
%i= t(".friends_since",:how_long_ago => how_long_ago(@person))
%li
.person_aspects
%ul
- for aspect in @aspects_with_person
%li= link_to aspect.name, aspect
/should be collapsed, either or, or request friend
- if @is_contact
= link_to t('.remove_friend'), @person, :confirm => t('are_you_sure'), :method => :delete, :class => "button"
/profile junk
#profile_information
%ul
%li
%b bio-epic:
= @person.profile.bio
%li
%b gender:
= @person.profile.gender
%li
%b born:
= "#{time_ago_in_words(@person.profile.birthday)} ago" if @person.profile.birthday
%li
%b= link_to t('.edit_my_profile'), edit_person_path(@person) if @person == current_user.person
.span-15.last
= render 'shared/author_info', :person => @person
- if @contact || current_user.person == @person
- if @posts.count > 0
%ul#stream
- for post in @posts
= render type_partial(post), :post => post
= will_paginate @posts
- else
%h3= t('.no_posts')
- else
.floating
%h3
= t('.not_friends', :name => @person.real_name)
- unless @pending_request
%h3
.description
= t('.request_people')
= form_for Request.new do |f|
= f.select(:aspect_id, @aspects_dropdown_array)
= f.hidden_field :destination_url, :value => @person.diaspora_handle
= f.submit t('.add_friend')
- else
%h3
.description
= t('.already_requested', :name => @person.real_name)