Sha256: 252586358520f1997fb336c8bf63c7dfaac757deff038fbaa6129a592fb3cc1e
Contents?: true
Size: 572 Bytes
Versions: 8
Compression:
Stored size: 572 Bytes
Contents
module Pageflow module Admin class EntriesTab < ViewComponent def build(account) embedded_index_table(account.entries, blank_slate_text: I18n.t('pageflow.admin.entries.no_members')) do table_for_collection(sortable: true, class: 'entries', i18n: Pageflow::Entry) do column :title, sortable: :title do |entry| link_to(entry.title, admin_entry_path(entry)) end column :created_at column :updated_at end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems