<commit_before>%ul.reps-list.list-group
  - record.rep_users.order(name: :asc).each do |rep_user|
    %li.list-group-item
      .media
        %a.pull-left{href: user_path(rep_user)}
          %img.media-object{src: rep_user.avatar_url }
        .media-body= link_to rep_user.name, rep_user
  - if current_user.try(:can_administer?, record)
    - record.pending_invitations.order('created_at ASC').each do |invitation|
      %li.list-group-item
        .media
          .pull-left
            %img.media-object{src: record.avatar_url(size: :small)}
          .media-body
            .list-group-item-heading.gray-light #{invitation.name} (invited)
            .list-group-item-text.text-detail
              = link_to 'Copy invitation link', '#', data: {toggle: 'modal', target: '#resend-invitation'}, ng_click: "invitation.url = '#{invitation_url(invitation.token)}'; invitation.name = '#{invitation.name}'"
              |
              = link_to 'Delete', invitation_path(invitation), method: :delete, data: {confirm: 'Are you sure you want to delete the invitation?'}
    %li.list-group-item
      .list-group-item-heading Invite someone to represent #{record.name}
      .list-group-item-body
        = simple_form_for([record, @invitation], html: {class: 'form-inline'}) do |f|
          = f.input :name, placeholder: '<NAME>', label_html: {class: 'sr-only'}
          = f.input :email, placeholder: 'Email', label_html: {class: 'sr-only'}
          = f.submit 'Invite', data: {disable_with: 'Invite'}, class: 'btn btn-primary'

#resend-invitation.modal.fade
  .modal-dialog<commit_msg>Round spokespeople corners<commit_after>%ul.reps-list.list-group
  - record.rep_users.order(name: :asc).each do |rep_user|
    %li.list-group-item
      .media
        %a.pull-left{href: user_path(rep_user)}
          %img.media-object.avatar{src: rep_user.avatar_url }
        .media-body= link_to rep_user.name, rep_user
  - if current_user.try(:can_administer?, record)
    - record.pending_invitations.order('created_at ASC').each do |invitation|
      %li.list-group-item
        .media
          .pull-left
            %img.media-object.avatar{src: record.avatar_url(size: :small)}
          .media-body
            .list-group-item-heading.gray-light #{invitation.name} (invited)
            .list-group-item-text.text-detail
              = link_to 'Copy invitation link', '#', data: {toggle: 'modal', target: '#resend-invitation'}, ng_click: "invitation.url = '#{invitation_url(invitation.token)}'; invitation.name = '#{invitation.name}'"
              |
              = link_to 'Delete', invitation_path(invitation), method: :delete, data: {confirm: 'Are you sure you want to delete the invitation?'}
    %li.list-group-item
      .list-group-item-heading Invite someone to represent #{record.name}
      .list-group-item-body
        = simple_form_for([record, @invitation], html: {class: 'form-inline'}) do |f|
          = f.input :name, placeholder: '<NAME>', label_html: {class: 'sr-only'}
          = f.input :email, placeholder: 'Email', label_html: {class: 'sr-only'}
          = f.submit 'Invite', data: {disable_with: 'Invite'}, class: 'btn btn-primary'

#resend-invitation.modal.fade
  .modal-dialog
{'fraction_non_alphanumeric': 0.15384615384615385, 'fraction_numerical': 0.0, 'mean_word_length': 2.9218559218559217, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6980804', 'n_tokens_mistral': 1044, 'n_tokens_neox': 1043, 'n_words': 205}