修复500

This commit is contained in:
huang 2017-03-12 11:53:15 +08:00
parent 18cd52a0bb
commit a43167c6cf
3 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ module StudentWorkHelper
def get_status status, re_commit
str = ""
if re_commit
if !re_commit.nil?
str = "重新提交"
else
case status

View File

@ -4,7 +4,7 @@
<span class="hidden fl" style="max-width:220px;"><%= student_work.name %></span>
<span class="fontGrey2 ml5 fl">
<% if student_work.work_status %>
<%= get_status student_work.work_status, nil %>
<%= get_status student_work.work_status, re_commit = nil %>
<% end %>
</span>
</span>

View File

@ -4,7 +4,7 @@
<span class="hidden fl" style="max-width:220px;"><%= student_work.name %></span>
<span class="fontGrey2 ml5 fl">
<% if student_work.work_status %>
<%= get_status student_work.work_status, nil %>
<%= get_status student_work.work_status, re_commit = nil %>
<% end %>
</span>
</span>