Sha256: 1218999736111edfbeb5f493f8ff0ad095867f8615ea0bf29e902db4690f8efc

Contents?: true

Size: 633 Bytes

Versions: 59

Compression:

Stored size: 633 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.translated_attribute(value))
            renderer.render(links: false).html_safe
          end
        end
      end
    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
decidim-meetings-0.28.1 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.27.6 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.26.10 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.26.9 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.28.0 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.27.5 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.28.0.rc5 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.28.0.rc4 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.26.8 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.27.4 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.27.3 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.26.7 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.26.5 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.27.2 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.27.1 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.26.4 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.27.0 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.26.3 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.27.0.rc2 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb
decidim-meetings-0.27.0.rc1 app/presenters/decidim/meetings/admin_log/value_types/meeting_title_description_presenter.rb