Sha256: 30fd2fd6e4a5c794d566a81ee580dc5d13751ef8a350b017803e2d9481ae5774

Contents?: true

Size: 431 Bytes

Versions: 7

Compression:

Stored size: 431 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Proposals
    module AdminLog
      module ValueTypes
        class ProposalTitleBodyPresenter < Decidim::Log::ValueTypes::DefaultPresenter
          def present
            return unless value
            renderer = Decidim::ContentRenderers::HashtagRenderer.new(value)
            renderer.render_without_link.html_safe
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-proposals-0.15.2 app/presenters/decidim/proposals/admin_log/value_types/proposal_title_body_presenter.rb
decidim-proposals-0.15.1 app/presenters/decidim/proposals/admin_log/value_types/proposal_title_body_presenter.rb
decidim-proposals-0.15.0 app/presenters/decidim/proposals/admin_log/value_types/proposal_title_body_presenter.rb
decidim-proposals-0.14.4 app/presenters/decidim/proposals/admin_log/value_types/proposal_title_body_presenter.rb
decidim-proposals-0.14.3 app/presenters/decidim/proposals/admin_log/value_types/proposal_title_body_presenter.rb
decidim-proposals-0.14.2 app/presenters/decidim/proposals/admin_log/value_types/proposal_title_body_presenter.rb
decidim-proposals-0.14.1 app/presenters/decidim/proposals/admin_log/value_types/proposal_title_body_presenter.rb