From 1658682f5ed96b85e6009091964d0e3d7b430e95 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 28 Oct 2016 09:19:55 +0800 Subject: [PATCH] =?UTF-8?q?1.=E9=87=8C=E7=A8=8B=E7=A2=91=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=BD=93=E6=97=A0=E9=87=8C=E7=A8=8B?= =?UTF-8?q?=E7=A2=91=E7=BB=93=E6=9D=9F=E6=97=B6=E9=97=B4=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=8E=86=E7=A8=8B=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E5=8F=B3?= =?UTF-8?q?=E8=BE=B9=E5=8D=95=E7=BA=AF=E5=8F=AA=E6=9C=89=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E9=97=B9=E9=92=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/versions/show.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/versions/show.html.erb b/app/views/versions/show.html.erb index c29d11fbb..3313585ab 100644 --- a/app/views/versions/show.html.erb +++ b/app/views/versions/show.html.erb @@ -11,10 +11,11 @@ <%= render :partial => 'versions/type_ico', :locals => {:version => @version} %>

- <% if @version.completed? %> + <%= format_date(@version.effective_date) %> <% elsif @version.effective_date %> + <%= due_date_distance_in_words(@version.effective_date) %>(<%= format_date(@version.effective_date) %>) <% end %>