Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_sub_header.html.haml « people « views « app - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4aef4bd72f6197af9034652306fec056beb3ba93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#author_info
  .right
    - if user_signed_in? && current_user.person != person
      - if @block.present?
        = link_to t('users.privacy_settings.stop_ignoring'), block_path(@block),
          :method => :delete,
          :class => "button"

      - else
        = aspect_membership_dropdown(contact, person, 'right')
    - 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.tag_string.blank? && user_signed_in?
      = Diaspora::Taggable.format_tags(person.profile.tag_string)
      - if 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
  - if user_signed_in? && current_page?(person_path current_user.person)
    %hr
    = render 'aspects/aspect_stream', :stream => @stream
%hr