2015-05-21 17:17:54 +08:00
|
|
|
<div class="show_hwork_arrow"></div>
|
2015-09-17 16:04:16 +08:00
|
|
|
<div class="showHwork">
|
|
|
|
<ul>
|
|
|
|
<li class="fl" >
|
|
|
|
<span class="tit_fb">上交时间:</span>
|
|
|
|
<%=format_time @work.created_at %>
|
|
|
|
</li>
|
2015-05-28 15:54:42 +08:00
|
|
|
|
2015-09-17 16:04:16 +08:00
|
|
|
<% if @work.user == User.current && @homework.homework_detail_manual.comment_status == 1 %>
|
|
|
|
<!-- 我的作业 && 匿评作业 && 未开启匿评,显示编辑和删除按钮 -->
|
|
|
|
<li class="fr" >
|
|
|
|
<%= link_to("", student_work_path(@work),:method => 'delete', :confirm => l(:text_are_you_sure), :class => "pic_del") %>
|
|
|
|
</li>
|
|
|
|
<li class="fr" >
|
|
|
|
<%= link_to "",edit_student_work_path(@work),:class => "pic_edit"%>
|
|
|
|
</li>
|
|
|
|
<% end%>
|
|
|
|
<% if @homework.homework_detail_manual.comment_status == 3 && @work.user != User.current%>
|
|
|
|
<!-- 匿评结束阶段,显示点赞按钮 -->
|
|
|
|
<li class="fr" id="student_work_praise_<%= @work.id%>">
|
|
|
|
<%= render :partial => 'student_work_praise' %>
|
|
|
|
</li>
|
|
|
|
<% end%>
|
2015-05-22 14:45:01 +08:00
|
|
|
<div class="cl"></div>
|
2015-09-17 16:04:16 +08:00
|
|
|
|
|
|
|
<!--<li ><span class="tit_fb"> 参与人员:</span>程梦雯 王强</li>-->
|
|
|
|
|
|
|
|
<% if @work.project%>
|
|
|
|
<li >
|
|
|
|
<span class="tit_fb"> 关联项目:</span>
|
|
|
|
<%= link_to( @work.project.name, project_path(@work.project.id), :class => "linkBlue" )%>
|
|
|
|
</li>
|
2015-05-22 14:45:01 +08:00
|
|
|
<% end%>
|
2015-05-26 17:51:56 +08:00
|
|
|
|
2015-09-17 16:04:16 +08:00
|
|
|
<li >
|
|
|
|
<span class="tit_fb ">内容:</span>
|
|
|
|
<div class="showHworkP break_word">
|
|
|
|
<%= text_format(@work.description) if @work.description%>
|
2015-05-28 15:54:42 +08:00
|
|
|
</div>
|
2015-09-17 16:04:16 +08:00
|
|
|
<div class="cl"></div>
|
|
|
|
</li>
|
|
|
|
<li >
|
|
|
|
<span class="tit_fb"> 附件:</span>
|
|
|
|
<% if @work.attachments.empty?%>
|
|
|
|
<span style="color: #999999">尚未提交附件</span>
|
|
|
|
<% else%>
|
|
|
|
<div class="fl" style="width: 90%;">
|
2015-10-19 13:58:05 +08:00
|
|
|
<%= render :partial => 'work_attachments_status', :locals => {:attachments => @work.attachments, :status => @homework.homework_detail_manual.comment_status} %>
|
2015-09-17 16:04:16 +08:00
|
|
|
</div>
|
|
|
|
<% end%>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</li>
|
|
|
|
<li >
|
|
|
|
<% if @is_teacher || (@homework.homework_detail_manual.comment_status == 2 && @work.user != User.current )%>
|
|
|
|
<!-- 老师 || 开启匿评状态 && 不是当前用户自己的作品 -->
|
|
|
|
<div id="add_student_score_<%= @work.id%>" class="mt10 evaluation">
|
|
|
|
<%= render :partial => 'add_score',:locals => {:work => @work,:score => @score}%>
|
|
|
|
</div>
|
|
|
|
<% end%>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2015-05-22 14:45:01 +08:00
|
|
|
|
2015-09-17 16:04:16 +08:00
|
|
|
<div class="ping_box fl" id="score_list_<%= @work.id%>" style="<%= @work.student_works_scores.empty? ? 'padding:0px;' : ''%>">
|
|
|
|
<%@student_work_scores.each do |score|%>
|
|
|
|
<div id="work_score_<%= score.id%>">
|
|
|
|
<%= render :partial => 'student_work_score',:locals => {:score => score,:is_last => score == @student_work_scores.last}%>
|
|
|
|
</div>
|
|
|
|
<% end%>
|
|
|
|
</div>
|
|
|
|
<!---ping_box end--->
|
|
|
|
<a href="javascript:void(0);" class="fr linkBlue mt5 mb5" onclick="$('#about_hwork_<%= @work.id%>').html('');">收起</a>
|
|
|
|
<div class="cl"></div>
|
|
|
|
</div>
|