Merge branch 'yuanke' into develop

This commit is contained in:
yuanke 2016-04-15 12:40:06 +08:00
commit 8eebfd7480
1 changed files with 47 additions and 45 deletions

View File

@ -39,6 +39,7 @@
<% @code_work_tests.each do |test| %>
<% infos = StudentWorkTest.find_by_sql("select a.homework_common_id as homeworkid,b.language from student_works as a, homework_detail_programings as b where a.id = #{test.student_work_id} and a.homework_common_id = b.homework_common_id
").first %>
<% if infos != nil %>
<tr class="<%= cycle("odd", "even") %>">
<td style="text-align: center; " title='<%=infos.homeworkid%>'>
<%=link_to(infos.homeworkid, student_work_index_path(:homework => infos.homeworkid))%>
@ -87,6 +88,7 @@
</td>
</tr>
<% end %>
<% end %>
</tbody>
</table>
</div>