diaspora/app/views/people/show.html.haml

38 lines
1 KiB
Text

.span-20.last
#profile.span-19.last
.profile_photo
= person_image_link(@person)
%h1
= @person.real_name
- unless @person.id == current_user.person.id
.right
= link_to 'remove friend', @person, :confirm => 'Are you sure?', :method => :delete, :class => "button"
%ul
-unless @posts.first.nil?
%li
%i= "last seen: #{how_long_ago(@posts.first)}"
%li
%i= "friends since: #{how_long_ago(@person)}"
%li
="groups: #{@person_groups}"
%li
url:
= @person.url
- unless @latest_status_message.nil?
%h1.pinched
%span
= "\"#{@latest_status_message.message}\""
%span="posted: #{how_long_ago(@latest_status_message)}"
.span-20.last
- if @posts
%h3= "stream - #{@post_count} item(s)"
%ul#stream
- for post in @posts
= render type_partial(post), :post => post unless post.class == Album
= will_paginate @posts
- else
%h3 no posts to display!