Sha256: 979ae679aff5d302b86d3febb1c90636cc89230a0680e4ce8e7a1461306bf440
Contents?: true
Size: 1.01 KB
Versions: 15
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true require "cell/partial" module Decidim module Proposals # This cell renders the link to the rejected emendation promoted to proposal. class ProposalLinkToRejectedEmendationCell < ProposalLinkedResourcesCell private def linked_resource @linked_resource ||= model.linked_promoted_resource end def link_to_resource_url resource_locator(linked_resource).path end def link_to_resource_text if model.emendation? t("link_to_proposal_from_emendation_text", scope: "decidim.proposals.proposals.show") else t("link_to_promoted_emendation_text", scope: "decidim.proposals.proposals.show") end end def link_help_text if model.emendation? t("link_to_proposal_from_emendation_help_text", scope: "decidim.proposals.proposals.show") else t("link_to_promoted_emendation_help_text", scope: "decidim.proposals.proposals.show") end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems