1.里程碑详情页面,当无里程碑结束时间时,历程详情页面右边单纯只有一个闹钟

This commit is contained in:
daiao 2016-10-28 09:19:55 +08:00
parent 3d5509593b
commit 1658682f5e
1 changed files with 2 additions and 1 deletions

View File

@ -11,10 +11,11 @@
<%= render :partial => 'versions/type_ico', :locals => {:version => @version} %>
</ul>
<p class="fr mt3 c_grey02">
<span class="muban-icons-clock "></span>
<% if @version.completed? %>
<span class="muban-icons-clock "></span>
<%= format_date(@version.effective_date) %>
<% elsif @version.effective_date %>
<span class="muban-icons-clock "></span>
<%= due_date_distance_in_words(@version.effective_date) %>(<%= format_date(@version.effective_date) %>)
<% end %>
</p>