Sha256: 9b9eea802855009c8f06fcb387bb9788386c97af96fe42086341833a6ed6e27d
Contents?: true
Size: 593 Bytes
Versions: 59
Compression:
Stored size: 593 Bytes
Contents
module Pageflow module Admin module EntriesHelper def admin_entry_title(entry) if entry.title.blank? I18n.t('pageflow.admin.entries.default_title', id: entry.id) else entry.title end end def collection_for_entry_publication_states [ 'published_without_password_protection', 'published_with_password_protection', 'not_published' ].index_by do |state| I18n.t(state, scope: 'activerecord.values.pageflow/entry.publication_states') end end end end end
Version data entries
59 entries across 59 versions & 1 rubygems