45 lines
1.9 KiB
Plaintext
45 lines
1.9 KiB
Plaintext
<table class="hwork-table-wrap" id="homework_table">
|
|
<tr class="b_grey hworkH30">
|
|
<th class="hworkList40 hworkH30 pl5 pr5">序号</th>
|
|
<th class="hworkList50"> </th>
|
|
<% if @homework.homework_type != 3 %>
|
|
<th class="<%= @homework.homework_type == 2 ? 'hworkList160' : 'hworkList200' %> hide-text">
|
|
<span class="HomeworkStuTitle f14 fb">姓名</span>
|
|
</th>
|
|
<th class="<%= @homework.homework_type == 2 ? 'hworkList160' : 'hworkList190' %> hide-text">
|
|
<span class="HomeworkStuTitle f14 fb">学号</span>
|
|
</th>
|
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 1 %>
|
|
<th class="hworkList230" style="text-align:left;">组长</th>
|
|
<th class="hworkList160">
|
|
<span class="HomeworkStuTitle f14 fb fl">关联项目</span>
|
|
</th>
|
|
<% elsif @homework.homework_type == 3 && @homework.homework_detail_group.base_on_project == 0 %>
|
|
<th class="hworkList390" style="text-align:left;">组长</th>
|
|
<% end %>
|
|
<th class="hworkList90 pl10">
|
|
状态
|
|
</th>
|
|
<% if @homework.homework_type == 2%>
|
|
<th class="hworkList70">
|
|
系统
|
|
</th>
|
|
<% end%>
|
|
<th class="hworkList70 pr10 pl10" style="font-size:12px;">
|
|
我的评分
|
|
</th>
|
|
<th class="hworkList40 pl10">
|
|
</th>
|
|
</tr>
|
|
<% @stundet_works.each_with_index do |student_work, i|%>
|
|
<% score_open = @homework.score_open == 1 || student_work.user == User.current %>
|
|
<a name="<%= student_work.id%>"></a>
|
|
<%= render :partial => "evaluation_work", :locals => {:student_work => student_work, :index => i, :score_open => score_open}%>
|
|
<tr>
|
|
<td colspan="12">
|
|
<div id="about_hwork_<%= student_work.id%>" class="about_hwork">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<% end%>
|
|
</table> |