<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
  %h1
    DIASPORA*

#author_info.profile
  = person_image_tag @person, :thumb_medium

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

- if user_signed_in? && !(@contact.persisted? || current_user.person == @person)
  - if @incoming_request
    .floating
      %h3
        = t('.incoming_request', :name => @person.name)
      %h4
        = link_to t('.return_to_aspects'), aspects_manage_path
        = t('.to_accept_or_ignore')

- if @posts.length > 0
  -if @post_type == :photos
    = render 'photos/index', :photos => @posts
  - else
    #main_stream.stream
      = render 'shared/stream', :posts => @posts
      #pagination
        =link_to(t('more'), person_path(@person, :page => next_page), :class => 'paginate')
- else
  #stream
    %li{:style=>"text-align:center;"}
      .dull= t('.no_posts')

<commit_msg>Use correct pagination in mobile person show<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
  %h1
    DIASPORA*

#author_info.profile
  = person_image_tag @person, :thumb_medium

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

- if user_signed_in? && !(@contact.persisted? || current_user.person == @person)
  - if @incoming_request
    .floating
      %h3
        = t('.incoming_request', :name => @person.name)
      %h4
        = link_to t('.return_to_aspects'), aspects_manage_path
        = t('.to_accept_or_ignore')

- if @posts.length > 0
  -if @post_type == :photos
    = render 'photos/index', :photos => @posts
  - else
    #main_stream.stream
      = render 'shared/stream', :posts => @posts
      #pagination
        =link_to(t('more'), next_page_path, :class => 'paginate')
- else
  #stream
    %li{:style=>"text-align:center;"}
      .dull= t('.no_posts')


{'fraction_non_alphanumeric': 0.13911007025761124, 'fraction_numerical': 0.00936768149882904, 'mean_word_length': 2.8555956678700363, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, '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': '7037529', 'n_tokens_mistral': 767, 'n_tokens_neox': 735, 'n_words': 170}