Hiding the hours used unless they are greater than 0. #1440
This commit is contained in:
@@ -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> </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>
|
||||
|
||||
Reference in New Issue
Block a user