Class: Decidim::Proposals::AdminLog::ValueTypes::ProposalTitleBodyPresenter
- Inherits:
-
Log::ValueTypes::DefaultPresenter
- Object
- Log::ValueTypes::DefaultPresenter
- Decidim::Proposals::AdminLog::ValueTypes::ProposalTitleBodyPresenter
- Defined in:
- app/presenters/decidim/proposals/admin_log/value_types/proposal_title_body_presenter.rb
Instance Method Summary collapse
Instance Method Details
#present ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/presenters/decidim/proposals/admin_log/value_types/proposal_title_body_presenter.rb', line 8 def present return unless value translated_value = h.decidim_escape_translated(value) return if translated_value.blank? renderer = Decidim::ContentRenderers::HashtagRenderer.new(translated_value) renderer.render(links: false).html_safe end |