def amendments_for(amendable)
      return unless amendable.amendable? && amendable.emendations.count.positive?

      content = content_tag(:h2, class: "section-heading", id: "amendments") do
        t("section_heading", scope: "decidim.amendments.amendable", count: amendable.emendations.count)
      end

      content << cell("decidim/collapsible_list",
                      amendable.emendations,
                      cell_options: { context: { current_user: current_user } },
                      list_class: "row small-up-1 medium-up-2 card-grid",
                      size: 4).to_s

      content_tag :div, content.html_safe, class: "section"
    end
def amendments_for(amendable)
      return unless amendable.amendable? && amendable.emendations.count.positive?

      content = content_tag(:h2, class: "section-heading", id: "amendments") do
        t("section_heading", scope: "decidim.amendments.amendable", count: amendable.emendations.count)
      end

      content << cell("decidim/collapsible_list",
                      amendable.emendations,
                      cell_options: { context: { current_user: current_user } },
                      list_class: "row small-up-1 medium-up-2 card-grid",
                      size: 4).to_s

      content_tag :div, content.html_safe, class: "section"
    end
Renders the emendations of an amendable resource

 Returns Html grid of CardM.