<commit_before>ul[class=:breadcrumb]
  li = link_to 'Applications', [:mentor, :applications]
  
p Get insight in certain fields of teams applying to work on your project this summer. You can take notes for yourself and pick your favorite applications; the sign off tells us that you believe the team has the needed requirements and skills to work on the project, and faving will make the application more likely to be accepted and having the team work on your project this summer.

table.applications.table.table-striped.table-bordered.table-condensed.table-hover
  caption Teams applying for your projects this season.
  thead
    tr
      th Application (Team)
      th Project
      th Sign-off
      th Fav
  tbody
    - @applications.each do |application|
      tr
        td = link_to application.team_name, mentor_application_path(id: application.id)
        td
          = link_to application.project_name, project_path(application.project_id)
          - if application.first_choice
            |&nbsp;#{icon('star')}
        td
          - if application.signed_off?
            = content_tag :em, icon('ok'), class: 'btn btn-disabled', disabled: true, title: "Signed-off at #{l application.signed_off_at}"
          - else
            = link_to icon('ok'), signoff_mentor_application_path(application), method: :put, class: 'btn btn-primary', data: { confirm: 'By signing-off this application, you deem this team fit to work on your project and that they meet the requirements. This cannot be undone. Proceed?' }
        td
          - if application.mentor_fav?
            = content_tag :em, icon('heart'), class: 'btn btn-disabled', disabled: true, title: "Marked as one of your favorites"
          - else
            = link_to icon('heart'), fav_mentor_application_path(application), method: :put, class: 'btn btn-success', data: { confirm: 'By fav\'ing this application, you declare that this would be one of your preferred teams. You can fav more than one application. This cannot be undone. Proceed?' }<commit_msg>Add undo actions to view<commit_after>ul[class=:breadcrumb]
  li = link_to 'Applications', [:mentor, :applications]
  
p Get insight in certain fields of teams applying to work on your project this summer. You can take notes for yourself and pick your favorite applications; the sign off tells us that you believe the team has the needed requirements and skills to work on the project, and faving will make the application more likely to be accepted and having the team work on your project this summer.

table.applications.table.table-striped.table-bordered.table-condensed.table-hover
  caption Teams applying for your projects this season.
  thead
    tr
      th Application (Team)
      th Project
      th Sign-off
      th Fav
  tbody
    - @applications.each do |application|
      tr
        td = link_to application.team_name, mentor_application_path(id: application.id)
        td
          = link_to application.project_name, project_path(application.project_id)
          - if application.first_choice
            |&nbsp;#{icon('star')}
        td
          - if application.signed_off?
            = link_to icon('ok'), signoff_mentor_application_path(application), method: :put, class: 'btn', title: "Signed-off at #{l application.signed_off_at}", data: { confirm: 'You are about to undo your sign-off. Proceed?' }
          - else
            = link_to icon('ok'), signoff_mentor_application_path(application), method: :put, class: 'btn btn-primary', data: { confirm: 'By signing-off this application, you deem this team fit to work on your project and that they meet the requirements. Proceed?' }
        td
          - if application.mentor_fav?
            = link_to icon('heart'), fav_mentor_application_path(application), method: :put, class: 'btn', title: "Marked as one of your favorites", data: { confirm: 'You are about to remove your preference for this team. Proceed?' }
          - else
            = link_to icon('heart'), fav_mentor_application_path(application), method: :put, class: 'btn btn-success', data: { confirm: 'By fav\'ing this application, you declare that this would be one of your preferred teams. You can fav more than one application. This cannot be undone. Proceed?' }
{'fraction_non_alphanumeric': 0.0852165725047081, 'fraction_numerical': 0.0, 'mean_word_length': 3.3180894308943087, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2484935', 'n_tokens_mistral': 1139, 'n_tokens_neox': 1122, 'n_words': 464}