Class: Decidim::Assemblies::AssembliesCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::Assemblies::AssembliesCell
- Includes:
- CardHelper
- Defined in:
- app/cells/decidim/assemblies/assemblies_cell.rb
Overview
This cell renders a list of assemblies in content blocks
Instance Method Summary collapse
Instance Method Details
#show_all_path ⇒ Object
15 16 17 |
# File 'app/cells/decidim/assemblies/assemblies_cell.rb', line 15 def show_all_path @show_all_path ||= [:show_all_path].presence end |
#title ⇒ Object
19 20 21 |
# File 'app/cells/decidim/assemblies/assemblies_cell.rb', line 19 def title @title ||= [:title] || t("name", scope: "decidim.assemblies.content_blocks.related_assemblies") end |
#total_count ⇒ Object
11 12 13 |
# File 'app/cells/decidim/assemblies/assemblies_cell.rb', line 11 def total_count @total_count ||= [:total_count] || assemblies.size end |