Sha256: 01429a954caa3f9afd39e2374f9d0546c7fccb6d57674d507706ecb8f78dfa54

Contents?: true

Size: 465 Bytes

Versions: 37

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Blogs
    # This cell renders the Medium (:m) post card
    # for an given instance of a Post
    class PostMCell < Decidim::CardMCell
      private

      def has_actions?
        false
      end

      def endorsements_count
        with_tooltip t("decidim.endorsable.endorsements") do
          "#{icon("bullhorn", class: "icon--small")} #{model.endorsements_count}"
        end
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
decidim-blogs-0.27.9 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.27.8 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.27.7 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.27.6 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.26.10 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.26.9 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.27.5 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.26.8 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.27.4 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.27.3 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.26.7 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.26.5 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.27.2 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.27.1 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.26.4 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.27.0 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.26.3 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.27.0.rc2 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.27.0.rc1 app/cells/decidim/blogs/post_m_cell.rb
decidim-blogs-0.26.2 app/cells/decidim/blogs/post_m_cell.rb