Sha256: b0f5dfdf0638f0c80b57804314b10f7d7bbe9d9ffabbaf429a345bd992f9c44f

Contents?: true

Size: 481 Bytes

Versions: 12

Compression:

Stored size: 481 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Proposals
    module Log
      class ValuationAssignmentPresenter < Decidim::Log::ResourcePresenter
        private

        # Private: Presents resource name.
        #
        # Returns an HTML-safe String.
        def present_resource_name
          if resource.present?
            resource.proposal.presenter.title(html_escape: true)
          else
            super
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-proposals-0.29.1 app/presenters/decidim/proposals/log/valuation_assignment_presenter.rb
decidim-proposals-0.28.4 app/presenters/decidim/proposals/log/valuation_assignment_presenter.rb
decidim-proposals-0.27.9 app/presenters/decidim/proposals/log/valuation_assignment_presenter.rb
decidim-proposals-0.29.0 app/presenters/decidim/proposals/log/valuation_assignment_presenter.rb
decidim-proposals-0.28.3 app/presenters/decidim/proposals/log/valuation_assignment_presenter.rb
decidim-proposals-0.27.8 app/presenters/decidim/proposals/log/valuation_assignment_presenter.rb
decidim-proposals-0.29.0.rc4 app/presenters/decidim/proposals/log/valuation_assignment_presenter.rb
decidim-proposals-0.29.0.rc3 app/presenters/decidim/proposals/log/valuation_assignment_presenter.rb
decidim-proposals-0.29.0.rc2 app/presenters/decidim/proposals/log/valuation_assignment_presenter.rb
decidim-proposals-0.29.0.rc1 app/presenters/decidim/proposals/log/valuation_assignment_presenter.rb
decidim-proposals-0.28.2 app/presenters/decidim/proposals/log/valuation_assignment_presenter.rb
decidim-proposals-0.27.7 app/presenters/decidim/proposals/log/valuation_assignment_presenter.rb