Class: Decidim::Assemblies::AssembliesCell

Inherits:
ViewModel
  • Object
show all
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_pathObject



15
16
17
# File 'app/cells/decidim/assemblies/assemblies_cell.rb', line 15

def show_all_path
  @show_all_path ||= options[:show_all_path].presence
end

#titleObject



19
20
21
# File 'app/cells/decidim/assemblies/assemblies_cell.rb', line 19

def title
  @title ||= options[:title] || t("name", scope: "decidim.assemblies.content_blocks.related_assemblies")
end

#total_countObject



11
12
13
# File 'app/cells/decidim/assemblies/assemblies_cell.rb', line 11

def total_count
  @total_count ||= options[:total_count] || assemblies.size
end