Sha256: cf8722fe820c3173cae449342f9443f6585e5505f9728c9caecf704efcda7a4b
Contents?: true
Size: 562 Bytes
Versions: 6
Compression:
Stored size: 562 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 alias resource model def show render end private def resource_path resource_locator(resource).path end def metadata_cell nil end def title decidim_escape_translated(resource.title) end def title_tag options[:title_tag] || :h3 end end end
Version data entries
6 entries across 6 versions & 1 rubygems