Sha256: 96a4d8c249f4bbc8569dcf7657f0c33965f65364fe937855a4bc271521cc2594
Contents?: true
Size: 1.06 KB
Versions: 78
Compression:
Stored size: 1.06 KB
Contents
# frozen_string_literal: true module Decidim module Proposals # Custom helpers, scoped to the proposals engine. # module CollaborativeDraftCellsHelper include Decidim::Proposals::ApplicationHelper include Decidim::Proposals::Engine.routes.url_helpers include Decidim::LayoutHelper include Decidim::ApplicationHelper include Decidim::TranslationsHelper include Decidim::ResourceReferenceHelper include Decidim::TranslatableAttributes include Decidim::CardHelper delegate :title, :state, to: :model def has_actions? false end def current_settings model.component.current_settings end def component_settings model.component.settings end def current_component model.component end def from_context @options[:from] end def badge_name humanize_collaborative_draft_state state end def state_classes [collaborative_draft_state_badge_css_class(state).to_s] end end end end
Version data entries
78 entries across 78 versions & 1 rubygems