Commit e7db9487 authored by jplang's avatar jplang

Roadmap shows 100%, but one of its tasks is still set to 90% (#30949).

Patch by Bernhard Rohloff.

git-svn-id: https://svn.redmine.org/redmine/trunk@18265 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent e7c1616f
......@@ -1376,7 +1376,7 @@ module ApplicationHelper
def progress_bar(pcts, options={})
pcts = [pcts, pcts] unless pcts.is_a?(Array)
pcts = pcts.collect(&:round)
pcts = pcts.collect(&:floor)
pcts[1] = pcts[1] - pcts[0]
pcts << (100 - pcts[1] - pcts[0])
titles = options[:titles].to_a
......
......@@ -17,9 +17,9 @@
<% if version.visible_fixed_issues.count > 0 %>
<%= progress_bar([version.visible_fixed_issues.closed_percent, version.visible_fixed_issues.completed_percent],
:titles =>
["%s: %0.0f%%" % [l(:label_closed_issues_plural), version.visible_fixed_issues.closed_percent],
"%s: %0.0f%%" % [l(:field_done_ratio), version.visible_fixed_issues.completed_percent]],
:legend => ('%0.0f%%' % version.visible_fixed_issues.completed_percent)) %>
["%s: %i%%" % [l(:label_closed_issues_plural), version.visible_fixed_issues.closed_percent],
"%s: %i%%" % [l(:field_done_ratio), version.visible_fixed_issues.completed_percent]],
:legend => ('%i%%' % version.visible_fixed_issues.completed_percent)) %>
<p class="progress-info">
<%= link_to(l(:label_x_issues, :count => version.visible_fixed_issues.count),
version_filtered_issues_path(version, :status_id => '*')) %>
......
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