Sha256: c03a7c340013aa2fb9569b4dec774322dd1071ef64ba74c53e278d9782c34a93
Contents?: true
Size: 877 Bytes
Versions: 1
Compression:
Stored size: 877 Bytes
Contents
# frozen_string_literal: true module Decidim module ProcessGroupsContentBlock module ContentBlocks class HighlightedProcessGroupsCell < Decidim::ViewModel include Decidim::SanitizeHelper delegate :current_organization, to: :controller delegate :current_user, to: :controller def show if highlighted_groups.any? render end end def highlighted_groups Decidim::ParticipatoryProcesses::OrganizationPrioritizedParticipatoryProcessGroups.new( current_organization ) end def i18n_scope "decidim.process_groups_content_block.pages.home.highlighted_process_groups" end def decidim_participatory_processes Decidim::ParticipatoryProcesses::Engine.routes.url_helpers end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-process_groups_content_block-0.14.3 | app/cells/decidim/process_groups_content_block/content_blocks/highlighted_process_groups_cell.rb |