增加批阅结果的下载,解决批阅结果下周报错

This commit is contained in:
sw 2015-05-27 15:18:53 +08:00
parent fea784cbcc
commit bdb0f638da
2 changed files with 5 additions and 4 deletions

View File

@ -428,7 +428,7 @@ private
@attachment.container.board.course)
@course = @attachment.container.board.course
else
unless @attachment.container_type == 'Bid' || @attachment.container_type == 'HomeworkAttach' || @attachment.container_type == 'Memo' || @attachment.container_type == 'Softapplication' || @attachment.container_type == 'PhoneAppVersion'
unless @attachment.container_type == 'Bid' || @attachment.container_type == 'HomeworkAttach' || @attachment.container_type == 'Memo' || @attachment.container_type == 'Softapplication' || @attachment.container_type == 'PhoneAppVersion' || @attachment.container_type = 'StudentWorksScore'
@project = @attachment.project
end
end

View File

@ -47,7 +47,7 @@
<span class="ml5 fl"><%= student_work_score_role score%></span>
<span class="ml20 fl">评分:</span>
<a href="javascript:void(0);" class="c_orange fl" ><%= score.score%>分</a>
<a href="javascript:void(0);" class="fr c_purple mr5" >回复</a>
<a href="javascript:void(0);" class="fr c_purple mr5" onclick="$('#add_score_reply_<%= score.id%>').slideToggle();">回复</a>
<span class=" fr c_grey mr20">
<%=format_time score.created_at %>
</span>
@ -55,9 +55,10 @@
<p class="break_word">
<%= score.comment%>
</p>
<div class="cl"></div>
<div id="add_score_reply_<%= score.id%>">
<%= render :partial => 'work_attachments', :locals => {:attachments => score.attachments} %>
<div class="cl"></div>
<div id="add_score_reply_<%= score.id%>" class="undis">
<%= render :partial => 'add_score_reply',:locals => {:score => score}%>
</div>
<div class="cl"></div>