Sha256: 887a727cb783e5e0947fecde773704448d2f1a1d732c1a23203a3b7f1ad18aaa
Contents?: true
Size: 517 Bytes
Versions: 7
Compression:
Stored size: 517 Bytes
Contents
# frozen_string_literal: true module Decidim # A Helper to render conferences. module Conferences module ConferenceHelper # Renders the dates of a conference # def render_date(conference) return l(conference.start_date, format: :decidim_with_month_name_short) if conference.start_date == conference.end_date "#{l(conference.start_date, format: :decidim_with_month_name_short)} - #{l(conference.end_date, format: :decidim_with_month_name_short)}" end end end end
Version data entries
7 entries across 7 versions & 1 rubygems