Sha256: 90b21f3f57c1aed439c09650938ddd14aa49d9b6e8828ae2c84a9cb6d55b3f30
Contents?: true
Size: 759 Bytes
Versions: 12
Compression:
Stored size: 759 Bytes
Contents
# frozen_string_literal: true module Decidim class VersionsListItemCell < Decidim::ViewModel include Decidim::TraceabilityHelper include Decidim::LayoutHelper def version model end def versioned_resource options[:versioned_resource] end def index options[:index] + 1 end def version_path options[:version_path].call(index) end def i18n_version_index i18n("version_index", index: index) end def i18n(string, **params) t(string, **params, scope: i18n_scope, default: t(string, **params, scope: default_i18n_scope)) end def i18n_scope options[:i18n_scope] end def default_i18n_scope "decidim.versions_list_item.show" end end end
Version data entries
12 entries across 12 versions & 1 rubygems