Hiding the hours used unless they are greater than 0. #1440
This commit is contained in:
1 parent
c6a23d0046
commit
abc4dd84c6
1 file changed
+3
@@ -33,6 +33,8 @@
|
|||||||
<%= row_with_double_data "Progress: ", number_to_percentage(deliverable.progress, :precision => 0), '' %>
|
<%= row_with_double_data "Progress: ", number_to_percentage(deliverable.progress, :precision => 0), '' %>
|
||||||
<% if allowed_management? %>
|
<% if allowed_management? %>
|
||||||
<%= row_with_double_data "Hours Estimated: ", number_with_precision(deliverable.total_hours, 0), '' %>
|
<%= 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) %>
|
<%= row_with_double_data "Hours Used: ", number_with_precision(deliverable.hours_used,0), number_to_currency(deliverable.spent, :precision => 0) %>
|
||||||
|
|
||||||
<tr><td> </td></tr>
|
<tr><td> </td></tr>
|
||||||
@@ -40,6 +42,7 @@
|
|||||||
<% deliverable.members_spent.each do |person| %>
|
<% deliverable.members_spent.each do |person| %>
|
||||||
<%= row_with_double_data(h(person.user.name), person.hours.round, number_to_currency(person.spent, :precision => 0)) %>
|
<%= row_with_double_data(h(person.user.name), person.hours.round, number_to_currency(person.spent, :precision => 0)) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in new issue
Block a user