Module: Decidim::CardHelper
- Included in:
- Accountability::ResultsCell, ActivitiesCell, Amendable::AmendmentsCell, Assemblies::AssembliesCell, Blogs::ContentBlocks::HighlightedPostsCell, CardLCell, Decidim::Conferences::LinkedParticipatorySpacesCell, Decidim::ContentBlocks::HighlightedParticipatorySpacesCell, Elections::HighlightedElectionsForComponentCell, FollowersCell, FollowingCell, GroupsCell, HighlightedParticipatoryProcessCell, Meetings::HighlightedMeetingsForComponentCell, MembersCell, ParticipatoryProcesses::FilteredParticipatoryProcessesCell, ParticipatoryProcesses::ProcessesCell, Proposals::CollaborativeDraftCellsHelper, Proposals::HighlightedProposalsForComponentCell, Proposals::ProposalCellsHelper, SearchResultsCell, SearchResultsSectionCell, UserGroupPendingInvitationsListCell, UserGroupPendingRequestsListCell
- Defined in:
- decidim-core/app/helpers/decidim/card_helper.rb
Overview
Helpers related to icons
Instance Method Summary collapse
-
#card_for(model, options = {}) ⇒ Object
Public: Returns a card given an instance of a Component.
Instance Method Details
#card_for(model, options = {}) ⇒ Object
Public: Returns a card given an instance of a Component.
model - The component instance to generate the card for. options - a Hash with options, for the size of the card
Returns an HTML.
12 13 14 |
# File 'decidim-core/app/helpers/decidim/card_helper.rb', line 12 def card_for(model, = {}) cell "decidim/card", model, end |