Sha256: e150c004719ac0dfdaf95ea726186bc979b5da94af9b61b4e5dbe45ede96b33f
Contents?: true
Size: 605 Bytes
Versions: 50
Compression:
Stored size: 605 Bytes
Contents
# frozen_string_literal: true module Decidim module ContentBlocks class HighlightedElementsSettingsFormCell < Decidim::ViewModel alias form model def order_options available_sorts.map do |sort_key| [ I18n.t("decidim.content_blocks.highlighted_elements_settings_form.orders.#{sort_key}"), sort_key ] end end def label I18n.t("decidim.content_blocks.highlighted_elements_settings_form.orders.label") end private def available_sorts %w(random recent) end end end end
Version data entries
50 entries across 50 versions & 1 rubygems