Sha256: 36edbe92c2d21eb871053f99749a2d13a7a90bea8456ce68e03b02e8b4bc53a3
Contents?: true
Size: 547 Bytes
Versions: 2
Compression:
Stored size: 547 Bytes
Contents
module Workarea decorate Storefront::ContentBlocks::CategorySummaryViewModel, with: :one_theme do def image find_asset(data[:image]) end def title data[:heading].presence || category.name end def call_to_action_text data[:link_text] || t('workarea.storefront.content_blocks.category_summary.view_all') end def content_background_style if data[:image].present? "background-image: url('#{image.url}'); background-size: cover; background-position: center;" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems