summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-12-08 17:09:06 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-12-08 17:09:06 -0200
commite948a466249be28655e794d63724e1c003f8621d (patch)
tree545229df3c4dfedd056f3c1eea0b2850cbb109fa
parentbcf407a2f887d065e515912514a69da942220db5 (diff)
downloadgitlab-ce-e948a466249be28655e794d63724e1c003f8621d.tar.gz
Displays milestone remaining days only when it's present
-rw-r--r--app/views/shared/milestones/_summary.html.haml6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/shared/milestones/_summary.html.haml b/app/views/shared/milestones/_summary.html.haml
index 0a237136959..d27fba805a3 100644
--- a/app/views/shared/milestones/_summary.html.haml
+++ b/app/views/shared/milestones/_summary.html.haml
@@ -25,8 +25,10 @@
%span.milestone-stat
%strong== #{milestone.percent_complete(current_user)}%
complete
- %span.milestone-stat
- %span.remaining-days= milestone_remaining_days(milestone)
+ - remaining_days = milestone_remaining_days(milestone)
+ - if remaining_days.present?
+ %span.milestone-stat
+ %span.remaining-days= remaining_days
.milestone-progress-buttons
%span.tab-issues-buttons