Skip to content
Snippets Groups Projects
Commit 71e798f5 authored by Mike Greiling's avatar Mike Greiling
Browse files

prevent formatted milestone date string from having html escaped

parent 822bfafa
No related branches found
No related tags found
1 merge request!10096Resolve "Simplify milestone summary"
Loading
@@ -89,10 +89,12 @@ module MilestonesHelper
Loading
@@ -89,10 +89,12 @@ module MilestonesHelper
content = time_ago.gsub(/\d+/) { |match| "<strong>#{match}</strong>" } content = time_ago.gsub(/\d+/) { |match| "<strong>#{match}</strong>" }
content.slice!("about ") content.slice!("about ")
content << " remaining" content << " remaining"
content.html_safe
elsif milestone.start_date && milestone.start_date.past? elsif milestone.start_date && milestone.start_date.past?
days = milestone.elapsed_days days = milestone.elapsed_days
content = content_tag(:strong, days) content = content_tag(:strong, days)
content << " #{'day'.pluralize(days)} elapsed" content << " #{'day'.pluralize(days)} elapsed"
content.html_safe
end end
end end
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment