Sha256: 08b0ef08548f5758deccc1bb757c2176d97d1a807b79da6ee4805af73fc445a8

Contents?: true

Size: 1.5 KB

Versions: 17

Compression:

Stored size: 1.5 KB

Contents

module PgEngine
  class Navigator
    # rubocop:disable Metrics/MethodLength
    def configure(navbar)
      # *****************************************************

      navbar.add_item('sidebar.signed_in', {
                        name: 'Inicio',
                        path: 'tenant_root_path',
                        priority: 0
                      })

      # *****************************************************

      return unless Current.namespace == :admin

      navbar.add_item('sidebar.signed_in', {
                        name: 'Eventos',
                        path: 'admin_simple_user_notifiers_path'
                      })
      navbar.add_item('sidebar.signed_in', {
                        name: 'Emails',
                        path: 'admin_emails_path'
                      })
      navbar.add_item('sidebar.signed_in', {
                        name: 'Email logs',
                        path: 'admin_email_logs_path'
                      })
      navbar.add_item('sidebar.signed_in', {
                        name: 'Users',
                        path: 'admin_users_path'
                      })
      navbar.add_item('sidebar.signed_in', {
                        name: 'Accounts',
                        path: 'admin_accounts_path'
                      })
      navbar.add_item('sidebar.signed_in', {
                        name: 'User Accounts',
                        path: 'admin_user_accounts_path'
                      })
    end
    # rubocop:enable Metrics/MethodLength
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pg_rails-7.6.23 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.22 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.22.pre.3 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.22.pre.2 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.22.pre.1 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.21 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.21.pre.11 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.21.pre.10 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.21.pre.9 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.21.pre.8 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.21.pre.7 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.21.pre.6 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.21.pre.5 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.21.pre.4 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.21.pre.3 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.21.pre.2 pg_engine/lib/pg_engine/navigator.rb
pg_rails-7.6.21.pre.1 pg_engine/lib/pg_engine/navigator.rb