%table.table.table-inverse
  %thead
    %tr
      %th Student Name
      %th Grade
      %th Gender
      %th GPA
      %th Detention Count
  %tbody.rowlink{"data-link" => "row"}
    - @students.each do |student|
      %tr
        %td
          %strong= link_to student.full_name, student_path(student)
        %td= student.grade_level
        %td= student.gender
        %td= student.gpa
        %td= student.detention_count
        - if not_assigned?(student)
          %td.rowlink-skip
            %button= link_to 'Add', student_teacher_path(student, current_teacher), class: "btn btn-secondary",  method: :patch
        - else
          %td.rowlink-skip
            %button= link_to "Remove", "#", class: "btn btn-secondary",  method: :delete

%table.table.table-inverse
  %thead
    %tr
      %th Student Name
      %th Grade
      %th Gender
      %th GPA
      %th Detention Count
  %tbody.rowlink{"data-link" => "row"}
    - @students.each do |student|
      %tr
        %td
          %strong= link_to student.full_name, student_path(student)
        %td= student.grade_level
        %td= student.gender
        %td{:class => color_indicate_gpa_range(student)}= student.gpa
        %td= student.detention_count
        - if not_assigned?(student)
          %td.rowlink-skip
            %button= link_to 'Add', student_teacher_path(student, current_teacher), class: "btn btn-secondary",  method: :patch
        - else
          %td.rowlink-skip
            %button= link_to "Remove", "#", class: "btn btn-secondary",  method: :delete

Add css class to each gpa cell to visual indicate grade range
Add css class to each gpa cell to visual indicate grade range
