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

Version Path
pageflow-17.0.4 app/views/components/pageflow/admin/timestamp.rb
pageflow-17.0.3 app/views/components/pageflow/admin/timestamp.rb
pageflow-17.0.2 app/views/components/pageflow/admin/timestamp.rb
pageflow-17.0.1 app/views/components/pageflow/admin/timestamp.rb
pageflow-17.0.0 app/views/components/pageflow/admin/timestamp.rb
pageflow-16.2.0 app/views/components/pageflow/admin/timestamp.rb
pageflow-16.1.0 app/views/components/pageflow/admin/timestamp.rb
pageflow-16.0.0 app/views/components/pageflow/admin/timestamp.rb
pageflow-15.8.0 app/views/components/pageflow/admin/timestamp.rb
pageflow-15.7.1 app/views/components/pageflow/admin/timestamp.rb
pageflow-15.7.0 app/views/components/pageflow/admin/timestamp.rb