Sha256: 14533d7c47960dee40c3d95da12200233aef6b3d8fb0f53223fd16176690794d

Contents?: true

Size: 606 Bytes

Versions: 84

Compression:

Stored size: 606 Bytes

Contents

module Pageflow
  module Admin
    class EntriesTab < ViewComponent
      def build(theming)
        account = theming.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

84 entries across 84 versions & 1 rubygems

Version Path
pageflow-14.0.0.rc2 app/views/components/pageflow/admin/entries_tab.rb
pageflow-14.0.0.rc1 app/views/components/pageflow/admin/entries_tab.rb
pageflow-14.0.0.beta3 app/views/components/pageflow/admin/entries_tab.rb
pageflow-14.0.0.beta2 app/views/components/pageflow/admin/entries_tab.rb
pageflow-14.0.0.beta1 app/views/components/pageflow/admin/entries_tab.rb
pageflow-13.6.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-13.5.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-13.4.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-13.3.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-13.2.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-12.6.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-13.1.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-12.5.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-12.4.1 app/views/components/pageflow/admin/entries_tab.rb
pageflow-13.0.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-13.0.0.rc1 app/views/components/pageflow/admin/entries_tab.rb
pageflow-12.4.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-12.3.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-13.0.0.beta7 app/views/components/pageflow/admin/entries_tab.rb
pageflow-13.0.0.beta6 app/views/components/pageflow/admin/entries_tab.rb