Sha256: 64fa69345556954b3b638366ed64c2c63356b8f6c5b25571b4cdad2cb85b3a4e

Contents?: true

Size: 380 Bytes

Versions: 11

Compression:

Stored size: 380 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
  concat content_tag(:span, nil, style: "background-color: #{value};", class: 'color-square')
  content_tag(:span, value, class: 'text-uppercase')
end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wallaby-8.0.0 app/views/wallaby/resources/index/_color.html.erb
wallaby-7.0.0 app/views/wallaby/resources/index/_color.html.erb
wallaby-7.0.0.beta2 app/views/wallaby/resources/index/_color.html.erb
wallaby-7.0.0.beta1 app/views/wallaby/resources/index/_color.html.erb
wallaby-6.1.6 app/views/wallaby/resources/index/_color.html.erb
wallaby-6.1.5 app/views/wallaby/resources/index/_color.html.erb
wallaby-6.1.4 app/views/wallaby/resources/index/_color.html.erb
wallaby-6.1.3 app/views/wallaby/resources/index/_color.html.erb
wallaby-6.1.2 app/views/wallaby/resources/index/_color.html.erb
wallaby-6.1.1 app/views/wallaby/resources/index/_color.html.erb
wallaby-6.1.0 app/views/wallaby/resources/index/_color.html.erb