diaspora/app/views/people/_sub_header.html.haml
2011-08-18 16:48:20 -07:00

26 lines
947 B
Text

#author_info
.right
- if user_signed_in? && current_user.person != person
= aspect_membership_dropdown(contact, person, 'left')
- elsif user_signed_in? && current_user.person == person
= link_to t('people.profile_sidebar.edit_my_profile'), edit_profile_path, :class => 'button creation'
%h2
= person.name
%span.diaspora_handle
= person.diaspora_handle
.description
- if !person.profile.tag_string.blank? && user_signed_in? && (contact.persisted? || person == current_user.person || @incoming_request)
= Diaspora::Taggable.format_tags(person.profile.tag_string)
- if user_signed_in? && person == current_user.person
%span.hover_edit
= link_to t('.edit'), edit_profile_path
- else
- if user_signed_in? && person == current_user.person
%i
= t('.you_have_no_tags')
%span.add_tags
= link_to t('.add_some'), edit_profile_path
%hr