<table class="table table-hover text-center subject-list-table">
  <thead class="thead-light">
  <tr>
    <th width="5%">序号</th>
    <th width="10%">建站工具</th>
    <th width="5%">顺序</th>
    <th width="15%">主题名</th>
    <th width="20%">图片</th>
    <th width="25%">仓库url</th>
    <th width="20%">操作</th>
  </tr>
  </thead>
  <tbody>
  <% if page_themes.present? %>
    <% page_themes.each_with_index do |theme, index| %>
      <tr class="page-theme-item-<%= theme.id %>">
        <td><%= list_index_no((params[:page] || 1).to_i, index) %></td>
        <td><%= theme.language_frame %></td>
        <td><%= theme.order_index %></td>
        <td style="word-break: break-all;word-wrap: break-word;" ><%= theme.name %></td>
        <td><img style="width:150px" src="<%= theme.image %>" /></td>
        <td style="word-break: break-all;word-wrap: break-word;" ><a href="<%= theme.clone_url %>" target="_blank"><%= theme.clone_url %></a> </td>
        <td class="action-container">
          <%= link_to "编辑", edit_admins_page_theme_path(theme), remote: true, class: "action" %>
          <%= link_to "删除", admins_page_theme_path(theme), 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: page_themes } %>