<commit_before>h2.title Current Employees ordered by performance review needs

= simple_form_for :performance_review, html: {method: :get, class: 'form'} do |f|
  label.control-label From&nbsp;

  = f.input :next_performance_review_start_date, as: :string, placeholder: 'dd-mm-yyyy', label: false, input_html: { value: params[:performance_review][:next_performance_review_start_date], class: 'datepicker', autocomplete: 'off' }
  label.control-label to &nbsp;
  = f.input :next_performance_review_finish_date, as: :string, placeholder: 'dd-mm-yyyy', label: false, input_html: { value: params[:performance_review][:next_performance_review_finish_date], class: 'datepicker', autocomplete: 'off' }

  = f.input :order, as: :select, collection: %w(next_review last_review), include_blank: false, selected: params[:performance_review][:order]

  = f.input :not_account_last_performance_review_date, as: :boolean, label: 'Also show employees who had review less than 6 months ago', input_html: { checked: params[:performance_review] && params[:performance_review][:not_account_last_performance_review_date] == '1' }

  = f.button :submit, 'View Report', class: 'btn btn-success'
br
= "#{@people.count} employees"

table.table.pretty-table
  thead
    th Name
    th Next Review Planned
    th Last Review
    th Start Date
  tbody
    - @people.each do |record|
      tr
        td = link_to record.name, person_path(record)
        td
          - if record.next_performance_review_at.present?
            - if record.next_performance_review_at >= Time.zone.now
              span style="color: grey"
                = record.next_performance_review_at.strftime(t(:datetime_full)).gsub('00:00, ', '')
            - else
              = record.next_performance_review_at.strftime(t(:datetime_full)).gsub('00:00, ', '')
        td
          - if record.last_performance_review_at.present?
            - if record.last_performance_review_at < 6.months.ago
              span style="color: green"
                = record.last_performance_review_at.strftime(t(:datetime_full)).gsub('00:00, ', '')
            - else
              = record.last_performance_review_at.strftime(t(:datetime_full)).gsub('00:00, ', '')<commit_msg>upd color<commit_after>h2.title Current Employees ordered by performance review needs

= simple_form_for :performance_review, html: {method: :get, class: 'form'} do |f|
  label.control-label From&nbsp;

  = f.input :next_performance_review_start_date, as: :string, placeholder: 'dd-mm-yyyy', label: false, input_html: { value: params[:performance_review][:next_performance_review_start_date], class: 'datepicker', autocomplete: 'off' }
  label.control-label to &nbsp;
  = f.input :next_performance_review_finish_date, as: :string, placeholder: 'dd-mm-yyyy', label: false, input_html: { value: params[:performance_review][:next_performance_review_finish_date], class: 'datepicker', autocomplete: 'off' }

  = f.input :order, as: :select, collection: %w(next_review last_review), include_blank: false, selected: params[:performance_review][:order]

  = f.input :not_account_last_performance_review_date, as: :boolean, label: 'Also show employees who had review less than 6 months ago', input_html: { checked: params[:performance_review] && params[:performance_review][:not_account_last_performance_review_date] == '1' }

  = f.button :submit, 'View Report', class: 'btn btn-success'
br
= "#{@people.count} employees"

table.table.pretty-table
  thead
    th Name
    th Next Review Planned
    th Last Review
    th Start Date
  tbody
    - @people.each do |record|
      tr
        td = link_to record.name, person_path(record)
        td
          - if record.next_performance_review_at.present?
            - if record.next_performance_review_at >= Time.zone.now
              span style="color: grey"
                = record.next_performance_review_at.strftime(t(:datetime_full)).gsub('00:00, ', '')
            - else
              = record.next_performance_review_at.strftime(t(:datetime_full)).gsub('00:00, ', '')
        td
          - if record.last_performance_review_at.present?
            - if record.last_performance_review_at >= 6.months.ago
              span style="color: green"
                = record.last_performance_review_at.strftime(t(:datetime_full)).gsub('00:00, ', '')
            - else
              = record.last_performance_review_at.strftime(t(:datetime_full)).gsub('00:00, ', '')
{'fraction_non_alphanumeric': 0.12491529252315338, 'fraction_numerical': 0.00903546419697312, 'mean_word_length': 3.834061135371179, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '254721', 'n_tokens_mistral': 1429, 'n_tokens_neox': 1320, 'n_words': 283}