Class: Wallaby::Resources::Index::ColorHtml
- Inherits:
-
Cell
- Object
- Cell
- Wallaby::Resources::Index::ColorHtml
- Defined in:
- app/views/wallaby/resources/index/color_html.rb
Overview
Html cell
Instance Method Summary collapse
Instance Method Details
#render ⇒ String
9 10 11 12 13 14 15 16 |
# File 'app/views/wallaby/resources/index/color_html.rb', line 9 def render 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 end |