Sha256: 6551ddce1c13a657141cae281e31c79651466543fedbcdbd32c3cfa3dd4ebf0a

Contents?: true

Size: 324 Bytes

Versions: 6

Compression:

Stored size: 324 Bytes

Contents

<% if value.nil? %>
  <%= null %>
<% else %>
  <% max    = metadata[:max] || 20 %>
  <% value  = value.to_json %>
  <% if value.length > max %>
    <code><%= value.truncate max %></code>
    <%= imodal metadata[:label], "<pre>#{ h value }</pre>".html_safe %>
  <% else %>
    <code><%= value %></code>
  <% end %>
<% end %>

Version data entries

6 entries across 2 versions & 1 rubygems

Version Path
wallaby-4.1.6 app/views/wallaby/resources/index/_hstore.html.erb
wallaby-4.1.6 app/views/wallaby/resources/index/_json.html.erb
wallaby-4.1.6 app/views/wallaby/resources/index/_jsonb.html.erb
wallaby-5.0.1 app/views/wallaby/resources/index/_hstore.html.erb
wallaby-5.0.1 app/views/wallaby/resources/index/_json.html.erb
wallaby-5.0.1 app/views/wallaby/resources/index/_jsonb.html.erb