Hiding the hours used unless they are greater than 0. #1440

This commit is contained in:
Eric Davis
2008-07-10 17:32:05 -07:00
parent c6a23d0046
commit abc4dd84c6

View File

@@ -33,6 +33,8 @@
<%= row_with_double_data "Progress: ", number_to_percentage(deliverable.progress, :precision => 0), '' %>
<% if allowed_management? %>
<%= row_with_double_data "Hours Estimated: ", number_with_precision(deliverable.total_hours, 0), '' %>
<% if deliverable.hours_used > 0 %>
<%= row_with_double_data "Hours Used: ", number_with_precision(deliverable.hours_used,0), number_to_currency(deliverable.spent, :precision => 0) %>
<tr><td>&nbsp;</td></tr>
@@ -40,6 +42,7 @@
<% deliverable.members_spent.each do |person| %>
<%= row_with_double_data(h(person.user.name), person.hours.round, number_to_currency(person.spent, :precision => 0)) %>
<% end %>
<% end %>
<% end %>
</table>
</td>