From 9fd7f11a47c80b100f41cdfa6b620dcc2fb6e9b4 Mon Sep 17 00:00:00 2001 From: Wen Date: Wed, 16 Apr 2014 10:35:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=84=E4=BB=B6=E5=BD=A2=E5=BC=8F=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E7=9A=84=E4=BD=9C=E4=B8=9A=E5=A4=84=EF=BC=8C=E8=BF=9F?= =?UTF-8?q?=E4=BA=A4=E6=A0=87=E8=AE=B0=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/bids/_homework_list.html.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/bids/_homework_list.html.erb b/app/views/bids/_homework_list.html.erb index 8e0c93a79..9dbc19386 100644 --- a/app/views/bids/_homework_list.html.erb +++ b/app/views/bids/_homework_list.html.erb @@ -22,7 +22,12 @@ - + +
<%= link_to homework.user, user_path(homework.user)%> 已提交 <%= link_to homework.user, user_path(homework.user)%> 已提交 + <% if Time.parse(@bid.deadline.to_s) > Time.parse(homework.attachments[0].created_on.to_s) %> + 迟交 + <% end %> +