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

43 lines
1.4 KiB
Text

.span-20.last
#profile.span-19.last
.profile_photo
= person_image_link(@person)
%h1
= @person.real_name
- if @person != current_user.person && current_user.friends.include?(@person)
.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)}"
- if @person != current_user.person && current_user.friends.include?(@person)
%li
%i= "friends since: #{how_long_ago(@person)}"
%li
= form_tag move_friend_path
= select :to, :to, @groups_dropdown_array, :selected_value => @groups_with_person.first.id
= hidden_field_tag :from, :from, :value => @groups_with_person.first.id
= hidden_field_tag :friend_id, :friend_id, :value => @person.id
= submit_tag "save"
%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!