Sha256: 2bb2a26ac61f4279fa5aa2b5d75edb23f4a364859b244959834431572e8dbf87

Contents?: true

Size: 434 Bytes

Versions: 49

Compression:

Stored size: 434 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))
    imodal metadata[:label], value
  else
    value
  end
end %>

Version data entries

49 entries across 7 versions & 1 rubygems

Version Path
wallaby-6.1.6 app/views/wallaby/resources/index/_citext.html.erb
wallaby-6.1.6 app/views/wallaby/resources/index/_mediumtext.html.erb
wallaby-6.1.6 app/views/wallaby/resources/index/_text.html.erb
wallaby-6.1.6 app/views/wallaby/resources/index/_ltree.html.erb
wallaby-6.1.6 app/views/wallaby/resources/index/_longtext.html.erb
wallaby-6.1.6 app/views/wallaby/resources/index/_tsvector.html.erb
wallaby-6.1.6 app/views/wallaby/resources/index/_tinytext.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_text.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_tsvector.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_ltree.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_citext.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_tinytext.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_longtext.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_mediumtext.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_mediumtext.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_text.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_ltree.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_citext.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_tsvector.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_longtext.html.erb