Class: Pageflow::Admin::Timestamp Private
- Inherits:
-
ViewComponent
- Object
- Arbre::Component
- ViewComponent
- Pageflow::Admin::Timestamp
- Defined in:
- app/views/components/pageflow/admin/timestamp.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #build(time) ⇒ Object private
- #tag_name ⇒ Object private
Instance Method Details
#build(time) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 10 11 12 13 14 |
# File 'app/views/components/pageflow/admin/timestamp.rb', line 7 def build(time) return unless 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 |
#tag_name ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
16 17 18 |
# File 'app/views/components/pageflow/admin/timestamp.rb', line 16 def tag_name 'span' end |