Sha256: 7b036b75411f95f53dacb7c3af923f96239534c3cf506918e2a36f1340c73b5e
Contents?: true
Size: 531 Bytes
Versions: 9
Compression:
Stored size: 531 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 def name return unless model.name.presence "<div class='text-medium'> #{model.name} </div>" end def logo return unless model.logo.presence "<div class='card p-m flex--cc'> #{image_tag model.logo.medium.url} </div>" end end end end
Version data entries
9 entries across 9 versions & 1 rubygems