Class: Decidim::Plans::TagsCell
- Inherits:
-
TagsCell
- Object
- TagsCell
- Decidim::Plans::TagsCell
- 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
#show ⇒ Object
14 15 16 |
# File 'app/cells/decidim/plans/tags_cell.rb', line 14 def show render if category? || scope? || taggings? end |
#taggings ⇒ Object
18 19 20 |
# File 'app/cells/decidim/plans/tags_cell.rb', line 18 def taggings render if taggings? end |