Class: Pageflow::Admin::EntriesTab

Inherits:
ViewComponent
  • Object
show all
Defined in:
app/views/components/pageflow/admin/entries_tab.rb

Instance Method Summary collapse

Methods inherited from ViewComponent

builder_method

Instance Method Details

#build(theming) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'app/views/components/pageflow/admin/entries_tab.rb', line 4

def build(theming)
   = theming.
  if .entries.any?
    table_for .entries, :i18n => Pageflow::Entry do
      column :title do |entry|
        link_to(entry.title, admin_entry_path(entry))
      end
    end
    else
      div :class => "blank_slate_container" do
      span :class => "blank_slate" do
        I18n.t('pageflow.admin.accounts.no_entries')
      end
    end
  end
end