<table class="table table-hover text-center hack-list-table">
  <thead class="thead-light">
  <tr>
    <th width="4%">序号</th>
    <th width="4%">ID</th>
    <th width="6%" class="text-left">课程名称</th>
    <th width="6%">编程语言</th>
    <th width="20%" class="text-left">任务名称</th>
    <th width="10%">难度</th>
    <th width="10%">是否公开</th>
    <th width="10%">创建者</th>
    <th width="10%"><%= sort_tag('创建时间', name: 'created_at', path: admins_hack_imports_path) %></th>
  </tr>
  </thead>
  <tbody>
  <% if item_banks.present? %>
    <% item_banks.each_with_index do |item_bank, index| %>
      <tr class="hack-item-<%= item_bank.id %>">
        <%= render partial: 'admins/hack_imports/shared/td', locals: {item_bank: item_bank, no: index} %>
      </tr>
    <% end %>
  <% else %>
    <%= render 'admins/shared/no_data_for_table' %>
  <% end %>
  </tbody>
</table>

<%= render partial: 'admins/shared/paginate', locals: { objects: item_banks } %>