app/cells/decidim/consultations/consultation_m_cell.rb in decidim-consultations-0.25.2 vs app/cells/decidim/consultations/consultation_m_cell.rb in decidim-consultations-0.26.0.rc1

- old
+ new

@@ -33,10 +33,10 @@ # In order to render the badge inline with the paragraph text we need to # find the opening `<p>` tag and include the badge right after it. This # makes the layout look good. def description text = super - text.gsub!(/^<p>/, "<p>#{render :badge}") + text.sub!(/<p>/, "<p>#{render :badge}") html_truncate(text, length: 100) end def resource_path Decidim::Consultations::Engine.routes.url_helpers.consultation_path(model)