Class: Wallaby::Resources::Index::DatetimeHtml
- Inherits:
-
Cell
- Object
- Cell
- Wallaby::Resources::Index::DatetimeHtml
- Defined in:
- app/views/wallaby/resources/index/datetime_html.rb
Overview
Html cell
Instance Method Summary collapse
Instance Method Details
#render ⇒ String
9 10 11 12 13 14 15 16 17 |
# File 'app/views/wallaby/resources/index/datetime_html.rb', line 9 def render if value.nil? null else self.value = Time.zone.parse value if value.is_a? String concat content_tag(:span, I18n.l(value, format: :short)) itooltip I18n.l(value), 'time' end end |