1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-24 01:11:12 +00:00

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

Patch by Bernhard Rohloff.

git-svn-id: http://svn.redmine.org/redmine/trunk@18265 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2019-06-20 06:29:11 +00:00
parent 001853ef79
commit 2663ae66ae
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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 => '*')) %>