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