Class: Decidim::Plans::TagsCell

Inherits:
TagsCell
  • Object
show all
Defined in:
app/cells/decidim/plans/tags_cell.rb

Overview

This cell renders:

  • The category of a resource shown with the translated name (parent)

  • The scope of a resource shown with the translated name (parent)

  • The assigned tags from the plans

The context ‘resource` must be present example use inside another `cell`:

<%= cell("decidim/category", model.category, context: {resource: model}) %>

Instance Method Summary collapse

Instance Method Details

#showObject



14
15
16
# File 'app/cells/decidim/plans/tags_cell.rb', line 14

def show
  render if category? || scope? || taggings?
end

#taggingsObject



18
19
20
# File 'app/cells/decidim/plans/tags_cell.rb', line 18

def taggings
  render if taggings?
end