Module: Adminterface::Extensions::Views::Comments
- Defined in:
- lib/adminterface/extensions/orm/active_record/comments/views/active_admin_comments.rb
Instance Method Summary collapse
- #default_body_class ⇒ Object
- #default_header_class ⇒ Object
- #default_title_class ⇒ Object
- #default_wrapper_class ⇒ Object
- #item_class ⇒ Object
Instance Method Details
#default_body_class ⇒ Object
17 18 19 |
# File 'lib/adminterface/extensions/orm/active_record/comments/views/active_admin_comments.rb', line 17 def default_body_class "panel-body #{comments_css_classes[:body]}".squish end |
#default_header_class ⇒ Object
13 14 15 |
# File 'lib/adminterface/extensions/orm/active_record/comments/views/active_admin_comments.rb', line 13 def default_header_class "panel-header #{comments_css_classes.dig(:header, :wrapper)}".squish end |
#default_title_class ⇒ Object
5 6 7 |
# File 'lib/adminterface/extensions/orm/active_record/comments/views/active_admin_comments.rb', line 5 def default_title_class "title #{comments_css_classes.dig(:header, :title)}".squish end |
#default_wrapper_class ⇒ Object
9 10 11 |
# File 'lib/adminterface/extensions/orm/active_record/comments/views/active_admin_comments.rb', line 9 def default_wrapper_class "panel #{comments_css_classes[:wrapper]}".squish end |
#item_class ⇒ Object
21 22 23 |
# File 'lib/adminterface/extensions/orm/active_record/comments/views/active_admin_comments.rb', line 21 def item_class @item_class ||= comments_css_classes.dig(:item) end |