Sha256: 1054fd6cbe4688f821016e1ad23c1c22bdf0c791d6919d3dc4ccf6991c602476
Contents?: true
Size: 518 Bytes
Versions: 51
Compression:
Stored size: 518 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
51 entries across 51 versions & 1 rubygems