diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-03-25 01:52:32 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-03-25 01:52:32 +0300 |
commit | 34870e169d80654911101208bb062182bc40f106 (patch) | |
tree | 36b14c2c2d537d717bf96f839e466f1fa19bc477 /app | |
parent | 3e61bd3ff41fa64312ce8b04e4dff5871ea7aa74 (diff) | |
parent | 80fb72996403691865b6ed2c154fbfd86717fce0 (diff) |
Merge branch '30035-milestone-with-due-date-shows-escaped-html' into 'master'
Resolve "Milestone with due date shows escaped HTML"
Closes #30035
See merge request !10224
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/milestones_helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/helpers/milestones_helper.rb b/app/helpers/milestones_helper.rb index 5053b937c02..bd3f51fc658 100644 --- a/app/helpers/milestones_helper.rb +++ b/app/helpers/milestones_helper.rb @@ -89,10 +89,12 @@ module MilestonesHelper content = time_ago.gsub(/\d+/) { |match| "<strong>#{match}</strong>" } content.slice!("about ") content << " remaining" + content.html_safe elsif milestone.start_date && milestone.start_date.past? days = milestone.elapsed_days content = content_tag(:strong, days) content << " #{'day'.pluralize(days)} elapsed" + content.html_safe end end |