Displays milestone remaining days only when it's present

parent bcf407a2
...@@ -25,8 +25,10 @@ ...@@ -25,8 +25,10 @@
%span.milestone-stat %span.milestone-stat
%strong== #{milestone.percent_complete(current_user)}% %strong== #{milestone.percent_complete(current_user)}%
complete complete
- remaining_days = milestone_remaining_days(milestone)
- if remaining_days.present?
%span.milestone-stat %span.milestone-stat
%span.remaining-days= milestone_remaining_days(milestone) %span.remaining-days= remaining_days
.milestone-progress-buttons .milestone-progress-buttons
%span.tab-issues-buttons %span.tab-issues-buttons
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment