Sha256: bc168bfffa8ff83f6cd01fe231d4e03f46cba25590c633718edf65d3a2713165
Contents?: true
Size: 805 Bytes
Versions: 6
Compression:
Stored size: 805 Bytes
Contents
# frozen_string_literal: true require "cell/partial" module Decidim module EnhancedTextwork # This cell renders the link to the source collaborative draft of a paragraph. class ParagraphLinkToCollaborativeDraftCell < ParagraphLinkedResourcesCell private def linked_resource @linked_resource ||= model.linked_resources(:collaborative_draft, "created_from_collaborative_draft").first end def link_to_resource link_to resource_locator(linked_resource).path, class: "link" do t("link_to_collaborative_draft_text", scope: "decidim.enhanced_textwork.paragraphs.show") end end def link_help_text t("link_to_collaborative_draft_help_text", scope: "decidim.enhanced_textwork.paragraphs.show") end end end end
Version data entries
6 entries across 6 versions & 1 rubygems