Sha256: a6323d3828e7059dd745a67733c028cb17fe89eb48540b162fb0fd0ccbfd5580
Contents?: true
Size: 622 Bytes
Versions: 38
Compression:
Stored size: 622 Bytes
Contents
# frozen_string_literal: true module Decidim module Meetings # This cell renders the URL address of an online meeting. class MeetingUrlCell < Decidim::Meetings::OnlineMeetingCell include Cell::ViewModel::Partial include LayoutHelper private def resource_icon icon icon_name, class: "icon--big", role: "img", "aria-hidden": true end def icon_name if has_meeting_url? "video" else "timer" end end def has_meeting_url? @has_meeting_url ||= model.online_meeting_url.present? end end end end
Version data entries
38 entries across 38 versions & 1 rubygems