Class: Pageflow::Admin::EntriesTab
- Inherits:
-
ViewComponent
- Object
- Arbre::Component
- ViewComponent
- Pageflow::Admin::EntriesTab
- Defined in:
- app/views/components/pageflow/admin/entries_tab.rb
Instance Method Summary collapse
Methods inherited from ViewComponent
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) account = theming.account if account.entries.any? table_for account.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 |