Sha256: bc633834655b0d4c286eb39c215cf629da0b8420dd2558e2e8a98fb7baf1cccd
Contents?: true
Size: 417 Bytes
Versions: 11
Compression:
Stored size: 417 Bytes
Contents
module Pageflow module Admin class Timestamp < ViewComponent builder_method :timestamp def build(time) if time span class: 'tooltip_clue' do text_node(l(time, format: time.today? ? :time_today : :date)) span(l(time, format: :long), class: 'tooltip_bubble') end end end def tag_name 'span' end end end end
Version data entries
11 entries across 11 versions & 1 rubygems