Sha256: f53c485c55def32f91b40b4c6e4372e06b3ec408f3b493bcf6009860386fe6b1
Contents?: true
Size: 739 Bytes
Versions: 1
Compression:
Stored size: 739 Bytes
Contents
# frozen_string_literal: true module Decidim module Posts # Custom helpers used in posts views module PostsHelper include Decidim::ApplicationHelper include Decidim::TranslationsHelper include Decidim::ResourceHelper include Decidim::Meetings::ApplicationHelper def calendar_months [Date.current, Date.current.next_month] end def collection @collection ||= meetings.limit(limit) end def meetings @meetings ||= show_upcoming_meetings? ? upcoming_meetings : past_meetings end def limit 3 end def participatory_space @participatory_space ||= current_component.participatory_space end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-posts-1.0.0 | app/helpers/decidim/posts/posts_helper.rb |