<table class="table table-hover text-center subject-list-table">
  <thead class="thead-light">
  <tr>
    <th width="5%">序号</th>
<!--    <th width="20%">类型</th>-->
    <th width="20%">领域</th>
    <th width="20%">标题</th>
    <th width="20%">描述</th>
    <th width="20%">id</th>
    <th width="20%">金额</th>
    <th width="20%">排序等级</th>
    <th width="25%">操作</th>
  </tr>
  </thead>
  <tbody>
  <% if topics.present? %>
    <% topics.each_with_index do |topic, index| %>
      <tr class="activity-forum-item-<%= topic.id %>">
        <td><%= list_index_no((params[:page] || 1).to_i, index) %></td>
<!--        <td><%#= topic.type_cn_name %></td>-->
        <td><%= topic.labels %></td>
        <td><%= topic.title %></td>
        <td><%= topic.description %></td>
        <td><%= topic.uuid %></td>
        <td><%= topic.identifier %></td>
        <td><%= topic.order_index %></td>
        <td class="action-container">
          <%= link_to "编辑", edit_admins_topic_path(topic), remote: true, class: "action" %>
          <%= link_to "删除", admins_topic_path(topic), method: :delete, data: { confirm: "确认删除的吗？" }, class: "action" %>
        </td>
      </tr>
    <% end %>
  <% else %>
    <%= render 'admins/shared/no_data_for_table' %>
  <% end %>
  </tbody>
</table>

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