Class: Decidim::Plans::CoauthorshipsCell

Inherits:
CoauthorshipsCell
  • Object
show all
Defined in:
app/cells/decidim/plans/coauthorships_cell.rb

Instance Method Summary collapse

Instance Method Details

#showObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'app/cells/decidim/plans/coauthorships_cell.rb', line 6

def show
  if authorable?
    cell "decidim/plans/author", presenter_for_author(model), extra_classes.merge(has_actions: has_actions?, from: model)
  else
    cell(
      "decidim/plans/collapsible_authors",
      presenters_for_identities(model),
      cell_name: "decidim/plans/author",
      cell_options: extra_classes,
      size: size,
      from: model,
      has_actions: has_actions?
    )
  end
end