Sha256: f144af2b1c4948cb941fb133dd714105db57ade1ee3e36425edc315e6996fa15

Contents?: true

Size: 638 Bytes

Versions: 12

Compression:

Stored size: 638 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    module AdminLog
      module ValueTypes
        # This class presents the given value as a Decidim::Meetings::MeetingTitleBody. Check
        # the `DefaultPresenter` for more info on how value presenters work.
        class MeetingTitleDescriptionPresenter < Decidim::Log::ValueTypes::DefaultPresenter
          def present
            return unless value

            renderer = Decidim::ContentRenderers::HashtagRenderer.new(h.decidim_escape_translated(value))
            renderer.render(links: false).html_safe
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-meetings-0.29.1 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.28.4 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.27.9 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.29.0 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.28.3 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.27.8 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.29.0.rc4 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.29.0.rc3 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.29.0.rc2 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.29.0.rc1 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.28.2 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.27.7 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb