<commit_before>.table-responsive.assignments-table
  table.table.table-no-border-top
    thead
      tr
        th.hidden-print colspan=2 Aktionen
        th= t_attr(:volunteer, GroupAssignment)
        th= t_attr(:role, GroupAssignment)
        th= t_attr(:period_start, GroupAssignment)
        th= t_attr(:period_end, GroupAssignment)
        th.hidden-print Aktionen
    tbody
      - group_assignments.unterminated.each do |group_assignment|
        tr
          td.index-action-cell.hidden-print
            = button_link navigation_glyph(:edit), edit_group_assignment_path(group_assignment, redirect_to: request.fullpath),
              title: 'Bearbeiten' if policy(group_assignment).edit?
            - if policy(group_assignment).show?
              = button_link navigation_glyph(:download), group_assignment_path(group_assignment, format: :pdf),
                title: 'Herunterladen'
          td
            - if group_assignment.period_end.present? && policy(GroupAssignment).verify_termination?
              = link_to_if(group_assignment.termination_verified_by.blank?, 'Beendigung Quittieren',
                verify_termination_group_assignment_path(group_assignment), class: 'btn btn-default',
                data: { method: 'PATCH' }) { '' }
          td
            = link_to_if(policy(group_assignment.volunteer).edit?, group_assignment.volunteer.contact.full_name, edit_volunteer_path(group_assignment.volunteer))
          td= group_assignment.responsible ? t_attr(:responsible, GroupAssignment) : t_attr(:member, GroupAssignment)
          td= l(group_assignment.period_start) if group_assignment.period_start
          td= l(group_assignment.period_end) if group_assignment.period_end
          td.index-action-cell.hidden-print
            - if group_assignment.period_end.blank?
              = link_to_if(policy(group_assignment).set_end_today?, 'Heute beenden',
                set_end_today_group_assignment_path(group_assignment, redirect_to: request.fullpath),
                data: { confirm: 'Heute beenden?', method: 'PUT' }) { '' }
            - elsif group_assignment.termination_submitted_by_id.blank?
              = link_to_if(policy(group_assignment).terminate?, 'Beendigungsformular an Freiwillige/n mailen',
                polymorphic_path([group_assignment, ReminderMailing], action: :new_termination),
                class: 'index-action-link')
              = link_to_if(policy(group_assignment).terminate?, 'Beendigungsformular ausfüllen',
                polymorphic_path(group_assignment, action: :terminate))
            - else
              = link_to_if(policy(group_assignment).terminate?, 'Beendigungsformular',<commit_msg>Changed the text of the confirmation<commit_after>.table-responsive.assignments-table
  table.table.table-no-border-top
    thead
      tr
        th.hidden-print colspan=2 Aktionen
        th= t_attr(:volunteer, GroupAssignment)
        th= t_attr(:role, GroupAssignment)
        th= t_attr(:period_start, GroupAssignment)
        th= t_attr(:period_end, GroupAssignment)
        th.hidden-print Aktionen
    tbody
      - group_assignments.unterminated.each do |group_assignment|
        tr
          td.index-action-cell.hidden-print
            = button_link navigation_glyph(:edit), edit_group_assignment_path(group_assignment, redirect_to: request.fullpath),
              title: 'Bearbeiten' if policy(group_assignment).edit?
            - if policy(group_assignment).show?
              = button_link navigation_glyph(:download), group_assignment_path(group_assignment, format: :pdf),
                title: 'Herunterladen'
          td
            - if group_assignment.period_end.present? && policy(GroupAssignment).verify_termination?
              = link_to_if(group_assignment.termination_verified_by.blank?, 'Beendigung Quittieren',
                verify_termination_group_assignment_path(group_assignment), class: 'btn btn-default',
                data: { method: 'PATCH' }) { '' }
          td
            = link_to_if(policy(group_assignment.volunteer).edit?, group_assignment.volunteer.contact.full_name, edit_volunteer_path(group_assignment.volunteer))
          td= group_assignment.responsible ? t_attr(:responsible, GroupAssignment) : t_attr(:member, GroupAssignment)
          td= l(group_assignment.period_start) if group_assignment.period_start
          td= l(group_assignment.period_end) if group_assignment.period_end
          td.index-action-cell.hidden-print
            - if group_assignment.period_end.blank?
              = link_to_if(policy(group_assignment).set_end_today?, 'Heute beenden',
                set_end_today_group_assignment_path(group_assignment, redirect_to: request.fullpath),
                data: { confirm: 'Wollen Sie die Begleitung wirklich beenden?', method: 'PUT' }) { '' }
            - elsif group_assignment.termination_submitted_by_id.blank?
              = link_to_if(policy(group_assignment).terminate?, 'Beendigungsformular an Freiwillige/n mailen',
                polymorphic_path([group_assignment, ReminderMailing], action: :new_termination),
                class: 'index-action-link')
              = link_to_if(policy(group_assignment).terminate?, 'Beendigungsformular ausfüllen',
                polymorphic_path(group_assignment, action: :terminate))
            - else
              = link_to_if(policy(group_assignment).terminate?, 'Beendigungsformular',
{'fraction_non_alphanumeric': 0.09530845954931659, 'fraction_numerical': 0.0003694126339120798, 'mean_word_length': 3.065315315315315, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3312052', 'n_tokens_mistral': 1622, 'n_tokens_neox': 1592, 'n_words': 236}