Sha256: 8aecaa34aeb3a5c909bc769b726791418189b5fe2eec15ff3f384df43cd531fb

Contents?: true

Size: 453 Bytes

Versions: 14

Compression:

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

Version data entries

14 entries across 7 versions & 1 rubygems

Version Path
wallaby-6.1.6 app/views/wallaby/resources/index/_polygon.html.erb
wallaby-6.1.6 app/views/wallaby/resources/index/_path.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_polygon.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_path.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_path.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_polygon.html.erb
wallaby-6.1.3 app/views/wallaby/resources/index/_polygon.html.erb
wallaby-6.1.3 app/views/wallaby/resources/index/_path.html.erb
wallaby-6.1.2 app/views/wallaby/resources/index/_polygon.html.erb
wallaby-6.1.2 app/views/wallaby/resources/index/_path.html.erb
wallaby-6.1.1 app/views/wallaby/resources/index/_polygon.html.erb
wallaby-6.1.1 app/views/wallaby/resources/index/_path.html.erb
wallaby-6.1.0 app/views/wallaby/resources/index/_path.html.erb
wallaby-6.1.0 app/views/wallaby/resources/index/_polygon.html.erb