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-15.8.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-14.5.2 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.7.1 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.7.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.6.1 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.6.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.5.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.4.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.3.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.2.2 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.2.1 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.2.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.1.2 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.1.1 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.1.0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.1.0.rc0 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.1.0.beta6 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.1.0.beta5 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.1.0.beta4 app/views/components/pageflow/admin/entries_tab.rb
pageflow-15.1.0.beta3 app/views/components/pageflow/admin/entries_tab.rb