added links to the aspects a person is in on the show page
This commit is contained in:
parent
554adeae69
commit
ae7891194e
1 changed files with 6 additions and 5 deletions
|
|
@ -16,15 +16,16 @@
|
||||||
%b.small= @person.diaspora_handle
|
%b.small= @person.diaspora_handle
|
||||||
%li
|
%li
|
||||||
%i= t(".last_seen",:how_long_ago => how_long_ago(@posts.first))
|
%i= t(".last_seen",:how_long_ago => how_long_ago(@posts.first))
|
||||||
|
|
||||||
- if @person != current_user.person && current_user.friends.include?(@person)
|
- if @person != current_user.person && current_user.friends.include?(@person)
|
||||||
%li
|
%li
|
||||||
%i= t(".friends_since",:how_long_ago => how_long_ago(@person))
|
%i= t(".friends_since",:how_long_ago => how_long_ago(@person))
|
||||||
%li
|
%li
|
||||||
= form_tag move_friend_path
|
.person_aspects
|
||||||
= select :to, :to, @aspects_dropdown_array, :selected => @aspects_with_person.first.id
|
➔
|
||||||
= hidden_field_tag :from, :from, :value => @aspects_with_person.first.id
|
%ul
|
||||||
= hidden_field_tag :friend_id, :friend_id, :value => @person.id
|
- for aspect in @aspects_with_person
|
||||||
= submit_tag t('.save')
|
%li= link_to aspect.name, aspect
|
||||||
|
|
||||||
- if @person != current_user.person && current_user.friends.include?(@person)
|
- 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"
|
= link_to t('.remove_friend'), @person, :confirm => t('.are_you_sure'), :method => :delete, :class => "button"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue