<% if partners.present? %> <% partners.each_with_index do |partner, index| %> <% end %> <% else %> <%= render 'admins/shared/no_data_for_table' %> <% end %>
序号 名称 <%= sort_tag('添加时间', name: 'created_at', path: admins_partners_path) %> 操作
<%= list_index_no((params[:page] || 1).to_i, index) %> <%= link_to partner.school&.name || partner.name, customers_partner_path(partner), target: '_blank' %> <%= partner.created_at&.strftime('%Y-%m-%d %H:%M') %> <%= link_to '查看', admins_partner_customers_path(partner), class: 'action' %> <%= delete_link '删除', admins_partner_path(partner, element: ".partner-item-#{partner.id}"), class: 'delete-partner-action' %>
<%= render partial: 'admins/shared/paginate', locals: { objects: partners } %>