<commit_before><%# Grades page for students %>

<div class='title_bar'>
  <h1><%= t('grade_entry_forms.grades.student_title') + ' ' + @grade_entry_form.short_identifier %></h1>
</div>

<div class="table">

  <% if @grade_entry_form.grade_entry_items.empty? %>
    <div class="wrapLeft">
      <p><%= t('grade_entry_forms.students.no_results') %></p>
    </div>
  <% else %>
    <% grade_entry_student = @grade_entry_form.grade_entry_students.find_by_user_id(@student.id) %>
    <% if grade_entry_student.nil?  or !grade_entry_student.released_to_student %>
      <%= t('grade_entry_forms.students.no_results') %>
    <% else %>
      <table>
        <thead>
          <%= render partial: 'grades_table_column_names' %>
        </thead>
        <tr>
          <td class="grades_table_cell"><%= @student.user_name %></td>
          <td class="grades_table_cell"><%= @student.last_name %></td>
          <td class="grades_table_cell"><%= @student.first_name %></td>

          <% @grade_entry_form.grade_entry_items.each do |grade_entry_item| %>
            <% grade = grade_entry_student.grades.find_by_grade_entry_item_id(grade_entry_item.id) %>
              <td class="grade">
                <% if !grade.nil? && !grade.grade.nil? %>
                  <%= grade.grade %>
                <% else %>
                  <%= t('grade_entry_forms.grades.no_mark') %>
                <% end %>
              </td>
          <% end %>
    <% if @grade_entry_form.show_total %>
      <td class=grade>
        <% total = grade_entry_student.total_grade %>
        <% if !total.nil? %>
          <%= total %>
        <% else %>
          <%= t('grade_entry_forms.grades.no_mark') %>
        <% end %>
     </td>
    <% end %>
        </tr>
     </table>
   <% end %>
  <% end %>

</div><commit_msg>Fix styling for student grade entry form list view<commit_after><%# Grades page for students %>

<div class='title_bar'>
  <h1><%= t('grade_entry_forms.grades.student_title') + ' ' + @grade_entry_form.short_identifier %></h1>
</div>

<% if @grade_entry_form.grade_entry_items.empty? %>
  <div class='wrapper'>
    <p><%= t('grade_entry_forms.students.no_results') %></p>
  </div>
<% else %>
  <% grade_entry_student = @grade_entry_form.grade_entry_students.find_by_user_id(@student.id) %>
  <% if grade_entry_student.nil?  or !grade_entry_student.released_to_student %>
    <%= t('grade_entry_forms.students.no_results') %>
  <% else %>
    <div class='table'>
      <table>
        <thead>
          <%= render partial: 'grades_table_column_names' %>
        </thead>
        <tbody>
          <tr>
            <td class='grades_table_cell'><%= @student.user_name %></td>
            <td class='grades_table_cell'><%= @student.last_name %></td>
            <td class='grades_table_cell'><%= @student.first_name %></td>

            <% @grade_entry_form.grade_entry_items.each do |grade_entry_item| %>
              <% grade = grade_entry_student.grades.find_by_grade_entry_item_id(grade_entry_item.id) %>
                <td class='grade'>
                  <% if !grade.nil? && !grade.grade.nil? %>
                    <%= grade.grade %>
                  <% else %>
                    <%= t('grade_entry_forms.grades.no_mark') %>
                  <% end %>
                </td>
            <% end %>

            <% if @grade_entry_form.show_total %>
              <td class='grade'>
                <% total = grade_entry_student.total_grade %>
                <% if !total.nil? %>
                  <%= total %>
                <% else %>
                  <%= t('grade_entry_forms.grades.no_mark') %>
                <% end %>
              </td>
            <% end %>
          </tr>
        </tbody>
     </table>
    </div>
  <% end %>
<% end %>
{'fraction_non_alphanumeric': 0.17004805125467165, 'fraction_numerical': 0.0010678056593699946, 'mean_word_length': 2.130325814536341, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, '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': '672759', 'n_tokens_mistral': 1333, 'n_tokens_neox': 1191, 'n_words': 179}