[#4570] Add the $ to the orphaned time message
This commit is contained in:
@@ -92,8 +92,9 @@ module ContractsHelper
|
||||
end
|
||||
end
|
||||
|
||||
def format_value_field_for_contracts(value)
|
||||
number_with_precision(value, :precision => Contract::ViewPrecision, :delimiter => ',')
|
||||
def format_value_field_for_contracts(value, options={})
|
||||
opt = {:unit => '', :precision => Contract::ViewPrecision, :delimiter => ','}.merge(options)
|
||||
number_to_currency(value, opt)
|
||||
end
|
||||
|
||||
def format_as_yes_or_no(value)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<% if resource.orphaned_time && resource.orphaned_time > 0 %>
|
||||
<div class="error_msg">
|
||||
<p>
|
||||
<%= l(:text_error_message_orphaned_time, :amount => format_value_field_for_contracts(resource.orphaned_time)) %>
|
||||
<%= l(:text_error_message_orphaned_time, :amount => format_value_field_for_contracts(resource.orphaned_time, :unit => '$')) %>
|
||||
<%= link_to_issue_list_with_filter(l(:text_error_message_update_orphaned_time), :deliverable_id => '!*') %>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user