From abc4dd84c68c17acdc3d9f2e743d5f2dbdd7fc19 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Thu, 10 Jul 2008 17:32:05 -0700 Subject: [PATCH] Hiding the hours used unless they are greater than 0. #1440 --- app/views/deliverables/_deliverable.html.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/deliverables/_deliverable.html.erb b/app/views/deliverables/_deliverable.html.erb index e5509da..6068dce 100644 --- a/app/views/deliverables/_deliverable.html.erb +++ b/app/views/deliverables/_deliverable.html.erb @@ -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) %>   @@ -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 %>