Updated Deliverable.progress

* Make it return 100 if there are no issues
* Get rid of sum in favor of manually adding values
* Expand the progress bar to 100%

  #1136
This commit is contained in:
Eric Davis
2008-05-23 16:16:42 -07:00
parent dee52c0042
commit 7e9e2759b8
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -5,5 +5,5 @@
<%= content_tag(:td, number_to_currency(deliverable.budget)) %>
<%= content_tag(:td, number_to_currency(deliverable.spent)) %>
<%= content_tag(:td, format_date(deliverable.due_date)) %>
<%= content_tag(:td, progress_bar(deliverable.progress, :width => '80px')) %>
<%= content_tag(:td, progress_bar(deliverable.progress, :width => '100%')) %>
</tr>