|
|
|
@ -37,13 +37,21 @@
|
|
|
|
|
<% if test['homework_id'] != nil %>
|
|
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
|
|
|
|
<td style="text-align: center; " title='<%=test['homework_id']%>'>
|
|
|
|
|
<%=link_to(test['homework_id'], student_work_index_path(:homework => test['homework_id']))%>
|
|
|
|
|
<% if test['link_hwork'] %>
|
|
|
|
|
<%=link_to(test['homework_id'], student_work_index_path(:homework => test['homework_id']))%>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= test['homework_id'] %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="text-align: center; " title='<%=test['student_work_id']%>'>
|
|
|
|
|
<% if !test['is_test'] %>
|
|
|
|
|
<%=link_to(test['student_work_id'], student_work_index_path(:homework => test['homework_id'],:student_work_id=>test['student_work_id']))%>
|
|
|
|
|
<% if test['link_swork'] && test['link_hwork'] %>
|
|
|
|
|
<% if !test['is_test'] %>
|
|
|
|
|
<%=link_to(test['student_work_id'], student_work_index_path(:homework => test['homework_id'],:student_work_id=>test['student_work_id']))%>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%=link_to(test['student_work_id'], new_user_commit_homework_users_path(homework_id: test['homework_id'], is_test: true))%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%=link_to(test['student_work_id'], new_user_commit_homework_users_path(homework_id: test['homework_id'], is_test: true))%>
|
|
|
|
|
<%= test['student_work_id'] %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="text-align: center;">
|
|
|
|
|