Sha256: 463e740d556539eddbcb7ebd901f5c733f62d5020750409eb4516a6627efb3d8

Contents?: true

Size: 1.34 KB

Versions: 59

Compression:

Stored size: 1.34 KB

Contents

Pageflow.configure do |config|
  config.admin_resource_tabs.register(:entry, name: :members, component: Pageflow::Admin::MembersTab)
  config.admin_resource_tabs.register(:entry, name: :revisions, component: Pageflow::Admin::RevisionsTab)

  config.admin_resource_tabs.register(:user, name: :accounts, component: Pageflow::Admin::UserAccountsTab)
  config.admin_resource_tabs.register(:user, name: :entries, component: Pageflow::Admin::UserEntriesTab)

  config.admin_resource_tabs.register(:theming, name: :entries, component: Pageflow::Admin::EntriesTab)
  config.admin_resource_tabs.register(:theming, name: :users, component: Pageflow::Admin::UsersTab)
end

Pageflow.after_configure do |config|
  features_tab_permissions =
    if config.permissions.only_admins_may_update_features
      {admin_only: true}
    else
      {required_account_role: :manager}
    end

  config.admin_resource_tabs.register(:entry,
                                      name: :features,
                                      component: Pageflow::Admin::FeaturesTab,
                                      **features_tab_permissions)

  config.admin_resource_tabs.register(:theming,
                                      name: :features,
                                      component: Pageflow::Admin::FeaturesTab,
                                      **features_tab_permissions)
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
pageflow-14.5.2 config/initializers/admin_resource_tabs.rb
pageflow-15.2.2 config/initializers/admin_resource_tabs.rb
pageflow-15.2.1 config/initializers/admin_resource_tabs.rb
pageflow-15.2.0 config/initializers/admin_resource_tabs.rb
pageflow-15.1.2 config/initializers/admin_resource_tabs.rb
pageflow-15.1.1 config/initializers/admin_resource_tabs.rb
pageflow-15.1.0 config/initializers/admin_resource_tabs.rb
pageflow-15.1.0.rc0 config/initializers/admin_resource_tabs.rb
pageflow-15.1.0.beta6 config/initializers/admin_resource_tabs.rb
pageflow-15.1.0.beta5 config/initializers/admin_resource_tabs.rb
pageflow-15.1.0.beta4 config/initializers/admin_resource_tabs.rb
pageflow-15.1.0.beta3 config/initializers/admin_resource_tabs.rb
pageflow-15.1.0.beta2 config/initializers/admin_resource_tabs.rb
pageflow-15.1.0.beta1 config/initializers/admin_resource_tabs.rb
pageflow-15.0.2 config/initializers/admin_resource_tabs.rb
pageflow-15.0.1 config/initializers/admin_resource_tabs.rb
pageflow-15.0.0 config/initializers/admin_resource_tabs.rb
pageflow-14.5.1 config/initializers/admin_resource_tabs.rb
pageflow-14.5.0 config/initializers/admin_resource_tabs.rb
pageflow-15.0.0.rc2 config/initializers/admin_resource_tabs.rb