<commit_before>-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

- content_for :page_title do
  = @person.name

.span-8.append-1.last
  = render :partial => 'people/profile_sidebar', :locals => {:person => @person, :contact => @contact }

  - if @contact && @contacts_of_contact.count > 0
    .span-8.last
      %hr{:style=>"width:300px;"}
      .section.contact_pictures
        %h4
          = @contacts_of_contact.length
          = t('.similar_contacts')
        - for person in @contacts_of_contact
          = person_image_link person

.span-15.last
  #author_info
    - unless @contact || current_user.person == @person
      .right
        = link_to t('.start_sharing'),
          {:controller => "people",
          :action => "share_with",
          :id => @person.id},
          :class => 'share_with button',
          :rel => 'facebox'
        - if @share_with
          = javascript_tag "$(document).ready(function() {jQuery.facebox({ ajax: '#{share_with_path(:id => @person.id)}' });});"


    - else
      .right
        - if @post_type == :photos
          = link_to t('layouts.header.view_profile'), person_path(@person)
        - else
          = link_to t('_photos'), person_photos_path(@person)

    %h3
      = @person.name
      .description
        = @person.diaspora_handle
  %hr

  - unless @contact || current_user.person == @person
    - if @incoming_request
      .floating
        %h3
          = t('.incoming_request')
        %h4
          = link_to t('.return_to_aspects'), aspects_manage_path
          = t('.to_accept_or_ignore')

  - if @posts.count > 0
    -if @post_type == :photos
      = render 'photos/index', :photos => @posts
    - else<commit_msg>incoming request on person show should just link to share_with<commit_after>-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

- content_for :page_title do
  = @person.name

.span-8.append-1.last
  = render :partial => 'people/profile_sidebar', :locals => {:person => @person, :contact => @contact }

  - if @contact && @contacts_of_contact.count > 0
    .span-8.last
      %hr{:style=>"width:300px;"}
      .section.contact_pictures
        %h4
          = @contacts_of_contact.length
          = t('.similar_contacts')
        - for person in @contacts_of_contact
          = person_image_link person

.span-15.last
  #author_info
    - unless @contact || current_user.person == @person
      .right
        = link_to t('.start_sharing'),
          {:controller => "people",
          :action => "share_with",
          :id => @person.id},
          :class => 'share_with button',
          :rel => 'facebox'
        - if @share_with
          = javascript_tag "$(document).ready(function() {jQuery.facebox({ ajax: '#{share_with_path(:id => @person.id)}' });});"


    - else
      .right
        - if @post_type == :photos
          = link_to t('layouts.header.view_profile'), person_path(@person)
        - else
          = link_to t('_photos'), person_photos_path(@person)

    %h3
      = @person.name
      .description
        = @person.diaspora_handle
  %hr

  - unless @contact || current_user.person == @person
    - if @incoming_request
      .floating
        %h3
        = link_to t('.incoming_request'),
          {:controller => "people",
          :action => "share_with",
          :id => @person.id},
          :class => 'share_with button',
          :rel => 'facebox'

  - if @posts.count > 0
    -if @post_type == :photos
      = render 'photos/index', :photos => @posts
    - else
{'fraction_non_alphanumeric': 0.14289565920733352, 'fraction_numerical': 0.009975734699379887, 'mean_word_length': 2.26297273526825, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 36, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1760357', 'n_tokens_mistral': 1237, 'n_tokens_neox': 1169, 'n_words': 261}