Sha256: c417c8c7b22f007c24f8c5cb76ee99e038b7ef31adc9bd310583a92b8ee5d22d

Contents?: true

Size: 586 Bytes

Versions: 5

Compression:

Stored size: 586 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).variant_url(:medium), alt: "logo"} </div>"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
decidim-conferences-0.29.1 app/cells/decidim/conferences/partner_cell.rb
decidim-conferences-0.28.4 app/cells/decidim/conferences/partner_cell.rb
decidim-conferences-0.29.0 app/cells/decidim/conferences/partner_cell.rb
decidim-conferences-0.28.3 app/cells/decidim/conferences/partner_cell.rb
decidim-conferences-0.29.0.rc4 app/cells/decidim/conferences/partner_cell.rb