Sha256: f06866096d32c3932d7bd3a8c846fdf978bc34fa69d7f1f89304d9745d4c58db
Contents?: true
Size: 941 Bytes
Versions: 4
Compression:
Stored size: 941 Bytes
Contents
# frozen_string_literal: true module Decidim module Conferences # This cell renders the media link card for an instance of a MediaLink class PhotoCell < Decidim::ViewModel include Decidim::ApplicationHelper include Decidim::SanitizeHelper def show render end private def index @options[:index] end def image_thumb image_tag model.thumbnail_url, alt: t("alt", scope: "decidim.conferences.photo.image.attributes") end def image_big image_tag model.big_url, alt: t("alt", scope: "decidim.conferences.photo.image.attributes") end def title decidim_escape_translated model.title end def short_description decidim_sanitize_editor html_truncate(description, length: 100, separator: "...") end def description translated_attribute(model.description) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems