You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
860 B
23 lines
860 B
5 years ago
|
<% 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 %>
|