<% if @project.module_enabled? :costs_module %> <%# Only render this partial, if the plugin is enabled for the current project %> <%= l(:label_cost_object) %>: <% if @issue.cost_object.nil? %>-<%else%><%= link_to_cost_object(@issue.cost_object) %><% end %> <% if User.current.allowed_to?(:view_cost_entries, @project) %> <%= l(:label_spent_units) %>: <%= summarized_cost_entries(@cost_entries) %> <% end %> <% unless @overall_costs.nil? %> <% if @material_costs.nil? label = :field_labor_costs elsif @labor_costs.nil? label = :field_material_costs else label = :field_overall_costs end %>     <%= l(label) %>: <%= number_to_currency(@overall_costs) %> <% end %> <% end %>