Sha256: 317fdeeb947960d33e4b494212ccba880ee971a1a8e789f2084083129250a4b3

Contents?: true

Size: 328 Bytes

Versions: 4

Compression:

Stored size: 328 Bytes

Contents

<%# @param object [model] model instance %>
<%# @param field_name [String] name of the field %>
<%# @param value [Object] value of the field %>
<%# @param metadata [Hash] metadata of the field %>
<%= if value.nil?
  null
else
  "%.#{ metadata[:precision] || 2 }f%%" %
    (value.to_f * (metadata[:is_percent] ? 1 : 100))
end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wallaby-8.0.0 app/views/wallaby/resources/index/_percent.html.erb
wallaby-7.0.0 app/views/wallaby/resources/index/_percent.html.erb
wallaby-7.0.0.beta2 app/views/wallaby/resources/index/_percent.html.erb
wallaby-7.0.0.beta1 app/views/wallaby/resources/index/_percent.html.erb