diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index fbeabfd68b2e..079034343892 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -172,12 +172,6 @@ def labeled_check_box_tags(name, collection, options = {}) end.join.html_safe end - def html_hours(text) - html_safe_gsub(text, - %r{(\d+)\.(\d+)}, - '\1.\2') - end - def html_safe_gsub(string, *gsub_args, &) html_safe = string.html_safe? result = string.gsub(*gsub_args, &) diff --git a/app/views/versions/show.html.erb b/app/views/versions/show.html.erb index b1c43a297acc..63198f80c000 100644 --- a/app/views/versions/show.html.erb +++ b/app/views/versions/show.html.erb @@ -73,12 +73,12 @@ See COPYRIGHT and LICENSE files for more details.
<%= Version.human_attribute_name(:estimated_hours) %> | -<%= html_hours(l_hours(@version.estimated_hours)) %> | +<%= l_hours(@version.estimated_hours) %> |
<%= t(:label_spent_time) %> | -<%= html_hours(l_hours(@version.spent_hours)) %> | +<%= l_hours(@version.spent_hours) %> |