Class: Decidim::Comments::TwoColumnsCommentsCell
- Inherits:
-
CommentsCell
- Object
- ViewModel
- CommentsCell
- Decidim::Comments::TwoColumnsCommentsCell
- Defined in:
- app/cells/decidim/comments/two_columns_comments_cell.rb
Overview
A cell to render comments in two columns layout.
Instance Method Summary collapse
- #call ⇒ Object
-
#render_column(top_comment, comments, icon_name, title, alignment, has_more) ⇒ Object
rubocop:disable Metrics/ParameterLists.
Methods inherited from CommentsCell
#add_comment, #blocked_comments_warning, #comments_loading, #inline, #render_comments, #reply?, #single_comment_warning, #user_comments_blocked_warning
Instance Method Details
#call ⇒ Object
7 8 9 10 |
# File 'app/cells/decidim/comments/two_columns_comments_cell.rb', line 7 def call initialize_comments render :show end |
#render_column(top_comment, comments, icon_name, title, alignment, has_more) ⇒ Object
rubocop:disable Metrics/ParameterLists
13 14 15 16 |
# File 'app/cells/decidim/comments/two_columns_comments_cell.rb', line 13 def render_column(top_comment, comments, icon_name, title, alignment, has_more) set_column_variables(top_comment, comments, icon_name, title, alignment, has_more) render :column end |