Sha256: 15a85c8e52e44f9e4ef97699eda4dd14620e1e0f0e73a7fe2251b1ccb6990814

Contents?: true

Size: 437 Bytes

Versions: 28

Compression:

Stored size: 437 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
  max = metadata[:max] || default_metadata.max
  value = value.to_s
  if value.length > max
    concat content_tag(:code, value.truncate(max))
    itooltip value
  else
    content_tag :code, value
  end
end %>

Version data entries

28 entries across 7 versions & 1 rubygems

Version Path
wallaby-6.1.6 app/views/wallaby/resources/index/_box.html.erb
wallaby-6.1.6 app/views/wallaby/resources/index/_line.html.erb
wallaby-6.1.6 app/views/wallaby/resources/index/_lseg.html.erb
wallaby-6.1.6 app/views/wallaby/resources/index/_circle.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_line.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_lseg.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_circle.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_box.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_circle.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_lseg.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_box.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_line.html.erb
wallaby-6.1.3 app/views/wallaby/resources/index/_line.html.erb
wallaby-6.1.3 app/views/wallaby/resources/index/_box.html.erb
wallaby-6.1.3 app/views/wallaby/resources/index/_circle.html.erb
wallaby-6.1.3 app/views/wallaby/resources/index/_lseg.html.erb
wallaby-6.1.2 app/views/wallaby/resources/index/_box.html.erb
wallaby-6.1.2 app/views/wallaby/resources/index/_lseg.html.erb
wallaby-6.1.2 app/views/wallaby/resources/index/_line.html.erb
wallaby-6.1.2 app/views/wallaby/resources/index/_circle.html.erb