Module: Adminterface::Extensions::Views::Comments

Defined in:
lib/adminterface/extensions/orm/active_record/comments/views/active_admin_comments.rb

Instance Method Summary collapse

Instance Method Details

#default_body_classObject



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_classObject



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_classObject



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_classObject



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_classObject



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