From 56eefe42eb7dc83624b73512789deabb845c581a Mon Sep 17 00:00:00 2001 From: Wen Date: Wed, 16 Apr 2014 10:58:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E4=BD=9C=E4=B8=9A=E5=A4=84?= =?UTF-8?q?=E8=BF=9F=E4=BA=A4=E6=A0=87=E8=AE=B0=E6=B7=BB=E5=8A=A0=20?= =?UTF-8?q?=E8=BF=9F=E4=BA=A4=E5=88=A4=E6=96=AD=E6=9B=B4=E6=94=B9=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E4=B8=8B-=20-?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/bids/_homework_list.html.erb | 2 +- app/views/bids/_list_projects.html.erb | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/views/bids/_homework_list.html.erb b/app/views/bids/_homework_list.html.erb index 9dbc19386..76207802c 100644 --- a/app/views/bids/_homework_list.html.erb +++ b/app/views/bids/_homework_list.html.erb @@ -24,7 +24,7 @@ <%= link_to homework.user, user_path(homework.user)%> 已提交 - <% if Time.parse(@bid.deadline.to_s) > Time.parse(homework.attachments[0].created_on.to_s) %> + <% if Time.parse(@bid.deadline.to_s) < Time.parse(homework.attachments[0].created_on.to_s) %> 迟交 <% end %> diff --git a/app/views/bids/_list_projects.html.erb b/app/views/bids/_list_projects.html.erb index 304bab413..41c5ab9d1 100644 --- a/app/views/bids/_list_projects.html.erb +++ b/app/views/bids/_list_projects.html.erb @@ -147,6 +147,13 @@ <%= format_time b_project.created_at%> + + + <% if Time.parse(@bid.deadline.to_s) < Time.parse(b_project.created_at.to_s) %> + 迟交 + <% end %> + +