Sha256: 32236c80d94cf1165ba7e53469b0689c10f09dbbb490dde6ed3a572be3c7fcea
Contents?: true
Size: 799 Bytes
Versions: 1
Compression:
Stored size: 799 Bytes
Contents
# frozen_string_literal: true module Decidim module Meetings # This cell renders the List Item Card (:list_item) meeting card # for an instance of a Meeting # # This cell must be wrapped in a "<div class="card card--list"></div>" class MeetingListItemCell < Decidim::Meetings::MeetingCell def show render end private def resource_path resource_locator(model).path end def title decidim_html_escape(present(model).title) end def resource_date_time str = l model.start_time, format: :decidim_day_of_year str += " - " str += l model.start_time, format: :time_of_day str += "-" str += l model.end_time, format: :time_of_day str end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-meetings-0.22.0 | app/cells/decidim/meetings/meeting_list_item_cell.rb |