|
|
@ -6,6 +6,7 @@
|
|
|
|
<th width="8%">头像</th>
|
|
|
|
<th width="8%">头像</th>
|
|
|
|
<th width="14%">创建者</th>
|
|
|
|
<th width="14%">创建者</th>
|
|
|
|
<th width="28%" class="text-left">实训名称</th>
|
|
|
|
<th width="28%" class="text-left">实训名称</th>
|
|
|
|
|
|
|
|
<th width="10">审核情况(内容/性能)</th>
|
|
|
|
<th width="12%">任务数</th>
|
|
|
|
<th width="12%">任务数</th>
|
|
|
|
<th width="16%">时间</th>
|
|
|
|
<th width="16%">时间</th>
|
|
|
|
<% if is_processed %>
|
|
|
|
<% if is_processed %>
|
|
|
@ -21,6 +22,8 @@
|
|
|
|
<% applies.each do |apply| %>
|
|
|
|
<% applies.each do |apply| %>
|
|
|
|
<% user = apply.user %>
|
|
|
|
<% user = apply.user %>
|
|
|
|
<% shixun = shixun_map[apply.container_id] %>
|
|
|
|
<% shixun = shixun_map[apply.container_id] %>
|
|
|
|
|
|
|
|
<% content_review = shixun.shixun_reviews.select{|sr| sr.review_type == 'Content'}.first %>
|
|
|
|
|
|
|
|
<% perference_review = shixun.shixun_reviews.select{|sr| sr.review_type == 'Performance'}.first %>
|
|
|
|
<tr class="shixun-authorization-item shixun-authorization-<%= apply.id %>">
|
|
|
|
<tr class="shixun-authorization-item shixun-authorization-<%= apply.id %>">
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<%= link_to "/users/#{user.login}", class: 'shixun-authorization-avatar', target: '_blank', data: { toggle: 'tooltip', title: '个人主页' } do %>
|
|
|
|
<%= link_to "/users/#{user.login}", class: 'shixun-authorization-avatar', target: '_blank', data: { toggle: 'tooltip', title: '个人主页' } do %>
|
|
|
@ -33,6 +36,10 @@
|
|
|
|
<%= overflow_hidden_span shixun.name, width: 300 %>
|
|
|
|
<%= overflow_hidden_span shixun.name, width: 300 %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<%= check_box_tag :content, content_review&.status, content_review&.status.to_i == 1, class:"shixun-setting-form" ,title:"内容审核"%>
|
|
|
|
|
|
|
|
<%= check_box_tag :perference, perference_review&.status, perference_review&.status.to_i == 1, class:"shixun-setting-form" ,title:"性能审核"%>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td><%= shixun.challenges_count %></td>
|
|
|
|
<td><%= shixun.challenges_count %></td>
|
|
|
|
<td><%= apply.updated_at.strftime('%Y-%m-%d %H:%M') %></td>
|
|
|
|
<td><%= apply.updated_at.strftime('%Y-%m-%d %H:%M') %></td>
|
|
|
|
|
|
|
|
|
|
|
|