1、作业附件显示不正确

2、没学号时作品列表显示有问题
This commit is contained in:
sw 2015-05-27 17:51:26 +08:00
parent 378907d68c
commit a218015e57
2 changed files with 5 additions and 3 deletions

View File

@ -17,7 +17,7 @@
<% end%>
<li >
<span class="tit_fb ">内容:</span>
<p class="show_hwork_p">
<p class="show_hwork_p break_word">
<%= @work.description%>
</p>
<div class="cl"></div>
@ -27,7 +27,9 @@
<% if @work.attachments.empty?%>
<span style="color: #999999">尚未提交附件</span>
<% else%>
<%= render :partial => 'work_attachments', :locals => {:attachments => @work.attachments} %>
<div class="fl">
<%= render :partial => 'work_attachments', :locals => {:attachments => @work.attachments} %>
</div>
<% end%>
</li>
<div class="cl"></div>

View File

@ -1,6 +1,6 @@
<!--class=""-->
<ul class="hwork_ul <%= cycle("b_grey", "") %>" id="student_work_<%= student_work.id%>">
<li >
<li style="min-height: 1px;width: 65px;">
<%= link_to student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id,user_path(student_work.user),:class => "c_blue02 hwork_center"%>
</li>
<li>