<% if shixuns.present? %> <% shixuns.each_with_index do |shixun,index| %> <% end %> <% else %> <%= render 'admins/shared/no_data_for_table' %> <% end %>
序号 ID 实训名称 技术平台 Fork源 实践 选择 状态 创建者 <%= sort_tag('创建于', name: 'created_on', path: admins_shixuns_path) %> 单测 操作
<%= list_index_no(@params_page.to_i, index) %> <%= shixun.identifier %> <%= link_to overflow_hidden_span(shixun.name), "/shixuns/#{shixun.identifier}", :target => "_blank", :title => shixun.name %> <%= shixun.shixun_main_name.nil? ? "--" : shixun.shixun_main_name %> <% if shixun.try(:fork_from).nil? %> -- <% else%> <%= link_to shixun.try(:identifier), shixun_path(shixun.try(:identifier)), target: '_blank'%> <% end%> <%= shixun.challenges.where(:st => 0).size %> <%= shixun.challenges.where(:st => 1).size %> <%= shixun_authentication_status shixun %> <%= link_to shixun.owner.try(:real_name),"/users/#{shixun.owner.try(:login)}",target:'_blank' %> <%= format_time shixun.created_at %> class="ml-3 mr5 magic-checkbox" id="join_teacher_homepage_<%= shixun.id %>"> <% if shixun.status == 0 %> <%= link_to(l(:button_delete), admins_shixun_path(shixun), :method => :delete, :data => { confirm: "您确定要删除吗?" } ) %> <% end %>
<%= render partial: 'admins/shared/paginate', locals: { objects: shixuns } %>