Sha256: 8d164e79158be8f445694544411caf6b04061685d81e02579fe97dae5d96b70b
Contents?: true
Size: 659 Bytes
Versions: 3
Compression:
Stored size: 659 Bytes
Contents
# frozen_string_literal: true module Decidim module Proposals # Simple helper to handle markup variations for participatory texts related partials module ParticipatoryTextsHelper # Returns the title for a given participatory text section. # # proposal - The current proposal item. # # Returns a string with the title of the section, subsection or article. def preview_participatory_text_section_title(proposal) translated = t(proposal.participatory_text_level, scope: "decidim.proposals.admin.participatory_texts.sections", title: proposal.title) translated.html_safe end end end end
Version data entries
3 entries across 3 versions & 1 rubygems