<table class="table text-center shixun-settings-list-table">
  <thead class="thead-light">
  <th width="6%">序号</th>
  <th width="14%" class="text-left">竞赛主标题</th>
  <th width="10%">竞赛副标题</th>
  <th width="8%">模式</th>
  <th width="8%">报名人数</th>
  <th width="8%">指导老师</th>
  <th width="8%">参赛者</th>
  <th width="14%">主题图片792*340</th>
  <th width="8%">创建时间</th>
  <th>
    操作
  </th>
  </thead>
  <tbody>
  <% if competitions.present? %>
    <% competitions.each_with_index do |competition, index| %>
      <tr id="competition-item-<%= competition.id %>">
        <% page_no = list_index_no(@params_page.to_i, index) %>
        <%= render partial: "admins/competitions/shared/td", locals: {competition: competition, page_no: page_no} %>
      </tr>
    <% end %>
  <% else %>
    <%= render 'admins/shared/no_data_for_table' %>
  <% end %>
  </tbody>
</table>

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