<% if subjects.present? %> <% subjects.each_with_index do |subject, index| %> <% end %> <% else %> <%= render 'admins/shared/no_data_for_table' %> <% end %>
序号 名称 阶段数 实训数 创建者 单位 <%= sort_tag('创建时间', name: 'created_at', path: admins_subjects_path) %> 状态 操作
<%= list_index_no((params[:page] || 1).to_i, index) %> <%= link_to(subject.name, "/paths/#{subject.id}", target: '_blank') %> 首页 金课 <%= subject.stages_count %> <%= subject.shixuns_count %> <%= subject.user.real_name %> <%= subject.user.school_name %> <%= subject.created_at&.strftime('%Y-%m-%d %H:%M') %> <%= display_subject_status(subject) %> <%= javascript_void_link('隐藏', class: 'hide-action', data: { id: subject.id }, style: subject.hidden? ? 'display:none' : '') %> <%= javascript_void_link('取消隐藏', class: 'active-action', data: { id: subject.id }, style: subject.hidden? ? '' : 'display:none') %> <%= delete_link '删除', admins_subject_path(subject, element: ".subject-item-#{subject.id}"), class: 'delete-subject-action' %> <% if subject.published? %>
<%= javascript_void_link('更多', class: 'action dropdown-toggle', 'data-toggle': 'dropdown', 'aria-haspopup': true, 'aria-expanded': false) %>
<% end %>
<%= render partial: 'admins/shared/paginate', locals: { objects: subjects } %>