Sha256: 945afea398d70268dfc9351d0ac045f7dd0a5c7a5f68eb4ab120ffb43dd20c1d

Contents?: true

Size: 418 Bytes

Versions: 21

Compression:

Stored size: 418 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(:span, value.truncate(max))
    itooltip value
  else
    value
  end
end %>

Version data entries

21 entries across 7 versions & 1 rubygems

Version Path
wallaby-6.1.6 app/views/wallaby/resources/index/_sti.html.erb
wallaby-6.1.6 app/views/wallaby/resources/index/_uuid.html.erb
wallaby-6.1.6 app/views/wallaby/resources/index/_string.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_uuid.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_string.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_sti.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_string.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_sti.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_uuid.html.erb
wallaby-6.1.3 app/views/wallaby/resources/index/_string.html.erb
wallaby-6.1.3 app/views/wallaby/resources/index/_sti.html.erb
wallaby-6.1.3 app/views/wallaby/resources/index/_uuid.html.erb
wallaby-6.1.2 app/views/wallaby/resources/index/_uuid.html.erb
wallaby-6.1.2 app/views/wallaby/resources/index/_string.html.erb
wallaby-6.1.2 app/views/wallaby/resources/index/_sti.html.erb
wallaby-6.1.1 app/views/wallaby/resources/index/_sti.html.erb
wallaby-6.1.1 app/views/wallaby/resources/index/_uuid.html.erb
wallaby-6.1.1 app/views/wallaby/resources/index/_string.html.erb
wallaby-6.1.0 app/views/wallaby/resources/index/_string.html.erb
wallaby-6.1.0 app/views/wallaby/resources/index/_uuid.html.erb