Sha256: fa3e361e54767428184cf92fa16ca209cf3252492bc185b179e652caacda08a8
Contents?: true
Size: 777 Bytes
Versions: 7
Compression:
Stored size: 777 Bytes
Contents
# frozen_string_literal: true module Decidim module Votings module ContentBlocks class HighlightedVotingsCell < Decidim::ContentBlocks::HighlightedParticipatorySpacesCell BLOCK_ID = "highlighted-votings" delegate :current_user, to: :controller def highlighted_spaces @highlighted_spaces ||= OrganizationPrioritizedVotings.new(current_organization, current_user).query end def i18n_scope "decidim.votings.pages.home.highlighted_votings" end def all_path Decidim::Votings::Engine.routes.url_helpers.votings_path end def max_results model.settings.max_results end private def block_id = BLOCK_ID end end end end
Version data entries
7 entries across 7 versions & 1 rubygems