<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 :head do
  = include_javascripts :aspects

%h3
  = t('.your_aspects')
  .description
    = t('.description')

-if @requests.size > 0
  %h3
    = t('.your_inviter')

  %h3
    %ul.dropzone
      - if @requests.size < 1
        %li=t('.no_requests')
      - else
        - for request in @requests
          %li.person.request{:data=>{:guid=>request.id, :person_id=>request.from.id}}
            = person_image_link(request.from)
    .requests
      %p= "#{t('.drag_to_add')} =>"


%ul#aspect_list
  - for aspect in @aspects
    %li.aspect{:data=>{:guid=>aspect.id}}

      .aspect_name
        %span.edit_name_field
          %h3{:contenteditable=>true}
            = aspect.name
          %span.tip click to edit

        %ul.tools
          %li!= remove_link(aspect)

      %ul.dropzone{:data=>{:aspect_id=>aspect.id}}
        -for contact in aspect.contacts
          %li.person{:data=>{:guid=>contact.person.id, :aspect_id=>aspect.id}}
            .delete
              .x
                X
              .circle
            = person_image_link(contact.person)
%h4
  = t('.aspect_name')
  = form_for Aspect.new do |aspect|
    = aspect.text_field :name, :style => "display:inline;"
    = aspect.submit t('.add')
%br<commit_msg>Replace old references to request.from with request.sender<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 :head do
  = include_javascripts :aspects

%h3
  = t('.your_aspects')
  .description
    = t('.description')

-if @requests.size > 0
  %h3
    = t('.your_inviter')

  %h3
    %ul.dropzone
      - if @requests.size < 1
        %li=t('.no_requests')
      - else
        - for request in @requests
          %li.person.request{:data=>{:guid=>request.id, :person_id=>request.sender.id}}
            = person_image_link(request.sender)
    .requests
      %p= "#{t('.drag_to_add')} =>"


%ul#aspect_list
  - for aspect in @aspects
    %li.aspect{:data=>{:guid=>aspect.id}}

      .aspect_name
        %span.edit_name_field
          %h3{:contenteditable=>true}
            = aspect.name
          %span.tip click to edit

        %ul.tools
          %li!= remove_link(aspect)

      %ul.dropzone{:data=>{:aspect_id=>aspect.id}}
        -for contact in aspect.contacts
          %li.person{:data=>{:guid=>contact.person.id, :aspect_id=>aspect.id}}
            .delete
              .x
                X
              .circle
            = person_image_link(contact.person)
%h4
  = t('.aspect_name')
  = form_for Aspect.new do |aspect|
    = aspect.text_field :name, :style => "display:inline;"
    = aspect.submit t('.add')
%br
{'fraction_non_alphanumeric': 0.14508851093370356, 'fraction_numerical': 0.008330440819160014, 'mean_word_length': 2.227323628219485, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, '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': '1454156', 'n_tokens_mistral': 1019, 'n_tokens_neox': 990, 'n_words': 199}