|
|
|
@ -1,22 +1,23 @@
|
|
|
|
|
<!-- 匿评作品列表,显示某一个作品的信息 -->
|
|
|
|
|
<ul class="hwork_ul <%= cycle("b_grey", "") %>" id="student_work_<%= student_work.id%>">
|
|
|
|
|
<% is_my_work = student_work.user == User.current%>
|
|
|
|
|
<li style="min-height: 1px;width: 65px;">
|
|
|
|
|
<li class="hwork_num">
|
|
|
|
|
<% if is_my_work%>
|
|
|
|
|
<% student_id = student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
|
|
|
|
|
<%= link_to student_id,"javascript:void(0)",:class => "c_grey hwork_center",:title => student_id%>
|
|
|
|
|
<span>
|
|
|
|
|
<%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
|
|
|
|
|
</span>
|
|
|
|
|
<% else%>
|
|
|
|
|
<%= link_to "--", "javascript:void(0)",:class => "c_grey hwork_center"%>
|
|
|
|
|
<span>--</span>
|
|
|
|
|
<% end%>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<li class="hwork_name">
|
|
|
|
|
<% if is_my_work%>
|
|
|
|
|
<%= link_to student_work.user.show_name,user_path(student_work.user),:class => "c_blue02 hwork_name",:title => student_work.user.show_name %>
|
|
|
|
|
<%= link_to student_work.user.show_name,user_path(student_work.user),:title => student_work.user.show_name %>
|
|
|
|
|
<% else%>
|
|
|
|
|
<%= link_to "匿名","javascript:void(0)",:class => "c_blue02 hwork_name"%>
|
|
|
|
|
<%= link_to "匿名","javascript:void(0)"%>
|
|
|
|
|
<% end%>
|
|
|
|
|
</li>
|
|
|
|
|
<li class=" hwork_tit_e" style="width: 440px">
|
|
|
|
|
<li class=" hwork_tit_e" style="width: 410px">
|
|
|
|
|
<%= link_to student_work.name, student_work_path(student_work),:remote => true, :title => student_work.name, :class => "c_blue02"%>
|
|
|
|
|
</li>
|
|
|
|
|
<% my_score = student_work_score(student_work,User.current) %>
|
|
|
|
|