<% if @teachers.present? %>
  <% @teachers.each_with_index do |teacher, index| %>
    <tr>
      <td class="pl20 pr20"><%= index + 1 %></td>
      <td class="color-dark"><a href="<%= user_path(teacher['login']) %>" target="_blank" class="task-hide" style="max-width: 84px;"><%= teacher['real_name'] %></a></td>
      <td><%= teacher['course_count'] %></td>
      <td><%= teacher['shixun_work_count'] %></td>
      <td><%= teacher['un_shixun_work_count'] %></td>
      <td><%= teacher['student_count'] %></td>
      <td><%= teacher['complete_rate'] %>%</td>
      <td class="color-blue"><%= teacher['publish_shixun_count'].to_i %></td>
    </tr>
  <% end %>
<% else %>
  <tr><td colspan="100">暂无数据</td></tr>
<% end %>