|
|
|
@ -6,16 +6,16 @@
|
|
|
|
|
<% pro = @homework.student_work_projects.where(:user_id => User.current.id).first %>
|
|
|
|
|
<% is_my_work = pro && pro.student_work_id == student_work.id%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<li class="hworkList340 width525">
|
|
|
|
|
<li class="hworkList340 w465">
|
|
|
|
|
<ul>
|
|
|
|
|
<% if is_my_work%>
|
|
|
|
|
<li class="hworkPortrait mt15 mr10">
|
|
|
|
|
<%= image_tag(url_to_avatar(student_work.user),width:"40", height: "40") %>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="hworkName mt15 mr15 width255 student_work_<%= student_work.id%>">
|
|
|
|
|
<li class="hworkName mt15 mr15 w230 student_work_<%= student_work.id%>">
|
|
|
|
|
<% student_work_name = student_work.name.nil? || student_work.name.empty? ? student_work.user.show_name + '的作品' : student_work.name%>
|
|
|
|
|
<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 w230"%>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;" class="student_work_<%= student_work.id%>">
|
|
|
|
@ -40,9 +40,9 @@
|
|
|
|
|
<li class="hworkPortrait mt15 mr10">
|
|
|
|
|
<%= image_tag(url_to_avatar(""),width:"40", height: "40") %>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="hworkName mt15 mr15 width255 student_work_<%= student_work.id%>">
|
|
|
|
|
<li class="hworkName mt15 mr15 w230 student_work_<%= student_work.id%>">
|
|
|
|
|
<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 w230"%>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li onclick="show_student_work('<%= student_work_path(student_work)%>');" style="cursor: pointer;" class="student_work_<%= student_work.id%>">
|
|
|
|
@ -83,7 +83,7 @@
|
|
|
|
|
<% end%>
|
|
|
|
|
|
|
|
|
|
<% my_score = student_work_score(student_work,User.current) %>
|
|
|
|
|
<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 ml10" style="float:right; ">
|
|
|
|
|
<%= my_score.nil? ? "--" : format("%.1f",my_score.score)%>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="hworkTip" style="display: none" id="work_click_<%= student_work.id%>"><em></em><span></span><font class="fontGrey2">点击查看详情</font></li>
|
|
|
|
|