Sha256: 6cefb3166fe63c9faf2afdf258e4d6d74ccdb837062c993c77de14567b35f22c

Contents?: true

Size: 588 Bytes

Versions: 8

Compression:

Stored size: 588 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Conferences
    # This cell renders the partners card for an instance of a Partner
    class PartnerCell < Decidim::ViewModel
      def show
        render
      end

      private

      # deprecated
      def name
        return unless model.name.presence

        "<div> #{model.name} </div>"
      end

      # deprecated
      def logo
        return unless model.logo.attached?

        "<div class='card p-m'> #{image_tag model.attached_uploader(:logo).path(variant: :medium), alt: "logo"} </div>"
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
decidim-conferences-0.29.0.rc3 app/cells/decidim/conferences/partner_cell.rb
decidim-conferences-0.29.0.rc2 app/cells/decidim/conferences/partner_cell.rb
decidim-conferences-0.29.0.rc1 app/cells/decidim/conferences/partner_cell.rb
decidim-conferences-0.28.2 app/cells/decidim/conferences/partner_cell.rb
decidim-conferences-0.28.1 app/cells/decidim/conferences/partner_cell.rb
decidim-conferences-0.28.0 app/cells/decidim/conferences/partner_cell.rb
decidim-conferences-0.28.0.rc5 app/cells/decidim/conferences/partner_cell.rb
decidim-conferences-0.28.0.rc4 app/cells/decidim/conferences/partner_cell.rb