|
|
@ -7,13 +7,13 @@
|
|
|
|
<li class="hworkPortrait mt15 mr10">
|
|
|
|
<li class="hworkPortrait mt15 mr10">
|
|
|
|
<%= image_tag(url_to_avatar(student_work.user),width:"40", height: "40") %>
|
|
|
|
<%= image_tag(url_to_avatar(student_work.user),width:"40", height: "40") %>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="hworkName mt15 mr15 width285">
|
|
|
|
<li class="hworkName mt15 mr15 width285 student_work_<%= student_work.id%>">
|
|
|
|
<% student_work_name = student_work.name.nil? || student_work.name.empty? ? student_work.user.show_name + '的作品' : student_work.name%>
|
|
|
|
<% student_work_name = student_work.name.nil? || student_work.name.empty? ? student_work.user.show_name + '的作品' : student_work.name%>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<%= link_to student_work_name, student_work_path(student_work),:remote => true,:title => student_work_name, :class => "linkGrey f14 StudentName break_word width285"%>
|
|
|
|
<%= link_to student_work_name, student_work_path(student_work),:remote => true,:title => student_work_name, :class => "linkGrey f14 StudentName break_word width285"%>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;">
|
|
|
|
<li onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;" class="student_work_<%= student_work.id%>">
|
|
|
|
<ul class="mt10 fl">
|
|
|
|
<ul class="mt10 fl">
|
|
|
|
<li class="hworkStName mr10 mt16" title="姓名">
|
|
|
|
<li class="hworkStName mr10 mt16" title="姓名">
|
|
|
|
<%= student_work.user.show_name%>
|
|
|
|
<%= student_work.user.show_name%>
|
|
|
@ -27,12 +27,12 @@
|
|
|
|
<li class="hworkPortrait mt15 mr10">
|
|
|
|
<li class="hworkPortrait mt15 mr10">
|
|
|
|
<%= image_tag(url_to_avatar(""),width:"40", height: "40") %>
|
|
|
|
<%= image_tag(url_to_avatar(""),width:"40", height: "40") %>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="hworkName mt15 mr15 width285">
|
|
|
|
<li class="hworkName mt15 mr15 width285 student_work_<%= student_work.id%>">
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<%= link_to "匿名的作品", student_work_path(student_work),:remote => true,:title => student_work_name, :class => "linkGrey f14 StudentName break_word width285"%>
|
|
|
|
<%= link_to "匿名的作品", student_work_path(student_work),:remote => true,:title => student_work_name, :class => "linkGrey f14 StudentName break_word width285"%>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;">
|
|
|
|
<li onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;" class="student_work_<%= student_work.id%>">
|
|
|
|
<ul class="mt10 fl">
|
|
|
|
<ul class="mt10 fl">
|
|
|
|
<li class="hworkStName mr10 mt16" title="姓名">
|
|
|
|
<li class="hworkStName mr10 mt16" title="姓名">
|
|
|
|
匿名
|
|
|
|
匿名
|
|
|
@ -46,7 +46,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="hworkList130 c_grey" onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;">
|
|
|
|
<li class="hworkList130 c_grey student_work_<%= student_work.id%>" onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;">
|
|
|
|
<%= Time.parse(format_time(student_work.created_at)).strftime("%m-%d %H:%M")%>
|
|
|
|
<%= Time.parse(format_time(student_work.created_at)).strftime("%m-%d %H:%M")%>
|
|
|
|
<% if Time.parse(@homework.end_time.to_s).strftime("%Y-%m-%d") < Time.parse(format_time(student_work.created_at)).strftime("%Y-%m-%d") %>
|
|
|
|
<% if Time.parse(@homework.end_time.to_s).strftime("%Y-%m-%d") < Time.parse(format_time(student_work.created_at)).strftime("%Y-%m-%d") %>
|
|
|
|
<span class="c_red">[迟交]</span>
|
|
|
|
<span class="c_red">[迟交]</span>
|
|
|
@ -58,6 +58,13 @@
|
|
|
|
<li class="hworkList50 <%= my_score.nil? ? 'c_grey' : score_color(my_score.score)%> mr10">
|
|
|
|
<li class="hworkList50 <%= my_score.nil? ? 'c_grey' : score_color(my_score.score)%> mr10">
|
|
|
|
<%= my_score.nil? ? "--" : format("%.1f",my_score.score)%>
|
|
|
|
<%= my_score.nil? ? "--" : format("%.1f",my_score.score)%>
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
<li class="hworkTip" style="display: none"><em></em><span></span><font class="fontGrey2">点击查看详情</font></li>
|
|
|
|
<li class="hworkTip" style="display: none" id="work_click_<%= student_work.id%>"><em></em><span></span><font class="fontGrey2">点击查看详情</font></li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
$(".student_work_<%= student_work.id%>").mouseenter(function(){
|
|
|
|
|
|
|
|
$("#work_click_<%= student_work.id%>").show();
|
|
|
|
|
|
|
|
}).mouseleave(function(){
|
|
|
|
|
|
|
|
$("#work_click_<%= student_work.id%>").hide();
|
|
|
|
|
|
|
|
}).mouse;
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|