From ae7891194e8e9db0afff13463a3a9240b00b8210 Mon Sep 17 00:00:00 2001
From: ilya <ilya@laptop.(none)>
Date: Wed, 20 Oct 2010 16:57:09 -0700
Subject: [PATCH] added links to the aspects a person is in on the show page

---
 app/views/people/show.html.haml | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/app/views/people/show.html.haml b/app/views/people/show.html.haml
index 8a76a63a6b..faa4e4bf54 100644
--- a/app/views/people/show.html.haml
+++ b/app/views/people/show.html.haml
@@ -16,15 +16,16 @@
           %b.small= @person.diaspora_handle
         %li
           %i= t(".last_seen",:how_long_ago => how_long_ago(@posts.first))
+
       - if @person != current_user.person && current_user.friends.include?(@person)
         %li
           %i= t(".friends_since",:how_long_ago => how_long_ago(@person))
         %li
-          = form_tag move_friend_path
-          = select :to, :to,  @aspects_dropdown_array, :selected => @aspects_with_person.first.id
-          = hidden_field_tag :from, :from, :value => @aspects_with_person.first.id
-          = hidden_field_tag :friend_id, :friend_id, :value => @person.id
-          = submit_tag t('.save')
+          .person_aspects
+            âž”
+            %ul
+              - for aspect in @aspects_with_person
+                %li= link_to aspect.name, aspect
 
     - if @person != current_user.person && current_user.friends.include?(@person)
       = link_to t('.remove_friend'), @person, :confirm => t('.are_you_sure'), :method => :delete, :class => "button"
-- 
GitLab