OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/views/cost_objects/update_material_budget_item...

7 lines
302 B

(function($) {
<% if current_user.allowed_to? :view_cost_rates, @project %>
$('#<%= "#{@element_id}_costs" %>').html("<%= number_to_currency(@costs) %>");
<% end %>
$('#<%= "#{@element_id}_unit_name" %>').html("<%= h(@units == 1.0 ? @cost_type.unit : @cost_type.unit_plural) %>");
})(jQuery);