<% if @students.present? %>
  <% @students.each_with_index do |student, index| %>
    <tr>
      <td>
        <% if index < 3 %>
          <img src="/images/educoder/competition/<%= index + 1 %>.png" width="18px" height="22px" class="mt8"/></td>
        <% else %>
          <%= index + 1 %>
        <% end %>
      </td>
      <td class="color-dark">
        <a href="/users/<%= student.login %>" target="_blank" class="d-inline-block text-truncate" style="max-width: 84px;"><%= student.real_name %></a>
      </td>
      <td><%= student.student_id %></td>
      <td><%= @shixun_count.fetch(student.id, 0) %></td>
      <td><%= @study_shixun_count.fetch(student.id, 0) %></td>
      <td><%= student.grade %></td>
      <td class="text-info"><%= student.experience %></td>
    </tr>
  <% end %>
<% else %>
<tr><td colspan="100">暂无数据</td></tr>
<% end %>