Sha256: f289ce37e3c62bd21cde8003b2cff3800296fa72a46103a0ac988989830c7e31
Contents?: true
Size: 654 Bytes
Versions: 8
Compression:
Stored size: 654 Bytes
Contents
# frozen_string_literal: true module Decidim # This cell is used a base for all Search cards. It holds the basic layout # so other cells only have to customize a few methods or overwrite views. class CardSCell < Decidim::ViewModel include Decidim::ApplicationHelper include Decidim::SanitizeHelper alias resource model def show render end private def resource_path resource_locator(resource).path end def metadata_cell nil end def title decidim_html_escape(translated_attribute(resource.title)) end def title_tag options[:title_tag] || :h3 end end end
Version data entries
8 entries across 8 versions & 1 rubygems