Sha256: 30f8ca1d8bf8614f13b10b402dbdcfe09f0b372eefb6f648c93e3a94220a68bb

Contents?: true

Size: 476 Bytes

Versions: 16

Compression:

Stored size: 476 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] || max_text_length
  value = value.to_s
  if value.length > max
    concat content_tag(:code, value.truncate(max))
    imodal metadata[:label], "<pre>#{h value}</pre>".html_safe
  else
    content_tag :code, value
  end
end %>

Version data entries

16 entries across 4 versions & 1 rubygems

Version Path
wallaby-8.0.0 app/views/wallaby/resources/index/_xml.html.erb
wallaby-8.0.0 app/views/wallaby/resources/index/_jsonb.html.erb
wallaby-8.0.0 app/views/wallaby/resources/index/_json.html.erb
wallaby-8.0.0 app/views/wallaby/resources/index/_hstore.html.erb
wallaby-7.0.0 app/views/wallaby/resources/index/_hstore.html.erb
wallaby-7.0.0 app/views/wallaby/resources/index/_json.html.erb
wallaby-7.0.0 app/views/wallaby/resources/index/_jsonb.html.erb
wallaby-7.0.0 app/views/wallaby/resources/index/_xml.html.erb
wallaby-7.0.0.beta2 app/views/wallaby/resources/index/_hstore.html.erb
wallaby-7.0.0.beta2 app/views/wallaby/resources/index/_json.html.erb
wallaby-7.0.0.beta2 app/views/wallaby/resources/index/_jsonb.html.erb
wallaby-7.0.0.beta2 app/views/wallaby/resources/index/_xml.html.erb
wallaby-7.0.0.beta1 app/views/wallaby/resources/index/_xml.html.erb
wallaby-7.0.0.beta1 app/views/wallaby/resources/index/_jsonb.html.erb
wallaby-7.0.0.beta1 app/views/wallaby/resources/index/_json.html.erb
wallaby-7.0.0.beta1 app/views/wallaby/resources/index/_hstore.html.erb