<table class="table table-hover text-center subject-list-table">
  <thead class="thead-light">
  <tr>
    <th width="5%">序号</th>
    <th width="15%">变量名</th>
    <th width="35%">变量值</th>
    <th width="20%">备注说明</th>
    <th width="10%"><%= sort_tag('创建时间', name: 'created_at', path: admins_edu_settings_path) %></th>
    <th width="10%">操作</th>
  </tr>
  </thead>
  <tbody>
  <% if edu_settings.present? %>
    <% edu_settings.each_with_index do |edu_setting, index| %>
      <tr class="edu_setting-item-<%= edu_setting.id %>">
        <td><%= list_index_no((params[:page] || 1).to_i, index) %></td>
        <td>
          <%= edu_setting.name %>
        </td>
        <td style="word-break: break-all;"><%= edu_setting.value %></td>
        
        <td><%= overflow_hidden_span display_text(edu_setting.description), width: 200 %></td>
        <td><%= edu_setting.created_at&.strftime('%Y-%m-%d %H:%M') %></td>
        <td class="action-container">
        <%= link_to "编辑", edit_admins_edu_setting_path(edu_setting), remote: true, class: "action" %>
        <%= link_to "删除", admins_edu_setting_path(edu_setting), 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: edu_settings } %>