|
|
|
@ -2,10 +2,10 @@
|
|
|
|
|
<tr class="b_grey hworkH30">
|
|
|
|
|
<th class="hworkList30 pl5 pr5"><span class="c_dark f14 fb">序号</span></th>
|
|
|
|
|
<th class="hworkList50"> </th>
|
|
|
|
|
<th class="hworkList60"><span class="c_dark f14 fb">姓名</span></th>
|
|
|
|
|
<th class="hworkList80"><span class="c_dark f14 fb">学号</span></th>
|
|
|
|
|
<th class="hworkList80"><span class="c_dark f14 fb">班级</span></th>
|
|
|
|
|
<th width="230"> </th>
|
|
|
|
|
<th class="hworkList130"><span class="c_dark f14 fb">姓名</span></th>
|
|
|
|
|
<th class="hworkList130"><span class="c_dark f14 fb">学号</span></th>
|
|
|
|
|
<th class="hworkList130"><span class="c_dark f14 fb">班级</span></th>
|
|
|
|
|
<th width="60"> </th>
|
|
|
|
|
<th class="hworkList130">
|
|
|
|
|
<%= link_to "时间",'',:class => "c_dark f14 fb" ,:remote => true%>
|
|
|
|
|
</th>
|
|
|
|
@ -17,19 +17,19 @@
|
|
|
|
|
<% @exercise_users_list.each_with_index do |exercise, index|%>
|
|
|
|
|
<tr class="hworkListRow" id="student_work_<%= exercise.id%>">
|
|
|
|
|
<td class="pl5 pr5" style="text-align:center;"><%=index + 1 %></td>
|
|
|
|
|
<td class="hworkPortrait pr10 float-none">
|
|
|
|
|
<td class="hworkPortrait float-none">
|
|
|
|
|
<%= link_to(image_tag(url_to_avatar(exercise.user),:width =>"40",:height => "40",:style => "display:block;", :class => "mt15"),user_activities_path(exercise.user)) %>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="hworkStName student_work_<%= exercise.id%>" title="姓名" id="student_name_<%= exercise.id%>" style="cursor:pointer;">
|
|
|
|
|
<td class="hworkStName130 pr10 student_work_<%= exercise.id%>" title="姓名" id="student_name_<%= exercise.id%>" style="cursor:pointer;">
|
|
|
|
|
<%=exercise.user.show_name %>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="hworkStID student_work_<%= exercise.id%> pl15 pr10 float-none" title="学号" id="student_id_<%= exercise.id%>" style="cursor:pointer;">
|
|
|
|
|
<span class="hidden fl" style="width:80px;"><%= exercise.user.user_extensions.nil? ? "--" : exercise.user.user_extensions.student_id%></span>
|
|
|
|
|
<td class="hworkStID130 pr10 student_work_<%= exercise.id%> float-none" title="学号" id="student_id_<%= exercise.id%>" style="cursor:pointer;">
|
|
|
|
|
<span class="hidden fl" style="width:130px;"><%= exercise.user.user_extensions.nil? ? "--" : exercise.user.user_extensions.student_id%></span>
|
|
|
|
|
</td>
|
|
|
|
|
<td class="hworkStID student_work_<%= exercise.id%> float-none" title="班级" id="student_class_<%= exercise.id%>" style="cursor:pointer;">
|
|
|
|
|
<td class="hworkStID130 student_work_<%= exercise.id%> float-none" title="班级" id="student_class_<%= exercise.id%>" style="cursor:pointer;">
|
|
|
|
|
--
|
|
|
|
|
</td>
|
|
|
|
|
<td width="230"> </td>
|
|
|
|
|
<td width="60"> </td>
|
|
|
|
|
<td class="hworkList130 c_grey">
|
|
|
|
|
<% if exercise.created_at%>
|
|
|
|
|
<%= Time.parse(format_time(exercise.created_at)).strftime("%m-%d %H:%M")%>
|
|
|
|
@ -45,13 +45,13 @@
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(".student_work_<%= exercise.id%>").mouseenter(function(){
|
|
|
|
|
$("#work_click_<%= exercise.id%>").show();
|
|
|
|
|
}).mouseleave(function(){
|
|
|
|
|
$("#work_click_<%= exercise.id%>").hide();
|
|
|
|
|
}).mouse;
|
|
|
|
|
$(function(){
|
|
|
|
|
<% if Time.parse(h(@exercise.end_time)).strftime("%Y-%m-%d-%H-%M-%S") <= Time.now.strftime("%Y-%m-%d-%H-%M-%S") %>
|
|
|
|
|
$(".student_work_<%= exercise.id%>").mouseenter(function(){
|
|
|
|
|
$("#work_click_<%= exercise.id%>").show();
|
|
|
|
|
}).mouseleave(function(){
|
|
|
|
|
$("#work_click_<%= exercise.id%>").hide();
|
|
|
|
|
}).mouse;
|
|
|
|
|
$("#student_name_<%= exercise.id%>,#student_id_<%= exercise.id%>,#student_class_<%= exercise.id%>").on('click',function() {
|
|
|
|
|
window.location.href = '<%=show_student_result_exercise_path(@exercise,:user_id => exercise.user_id) %>';
|
|
|
|
|
});
|
|
|
|
|