Sha256: ab869bb9ebace9cca721a0524b96ec6a28cc59d28e3e1f2b3cc4ded13bfd4c0a
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true module Wallaby module Resources module Index # Html cell class DaterangeHtml < Cell # @return [String] def render if value.nil? null else concat content_tag(:span, I18n.l(value.first, format: :short), class: 'from') concat '...' concat content_tag(:span, I18n.l(value.last, format: :short), class: 'to') itooltip "#{I18n.l value.first} ... #{I18n.l value.last}", 'time' end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wallaby-6.0.2 | app/views/wallaby/resources/index/daterange_html.rb |
wallaby-6.0.1 | app/views/wallaby/resources/index/daterange_html.rb |