%nav.navbar.navbar-default.navbar-fixed-top.main-nav.center{:style => 'margin-top: 40px;'}
  .container-fluid
    %ul.nav.navbar-nav
      %li.nav-item{:class => get_nav_link_class('dashboards') }
        = link_to dashboards_path do
          %i.fa.fa-home.fa-2x
          %br
          Home

      - SystemConfig.transam_module_names.each do |mod|
        = render :partial => "shared/#{mod}_main_nav" rescue nil

      = render 'shared/policy_nav'
      = render 'shared/reports_nav'
      
    - if current_user.has_role? :admin
      %ul.nav.navbar-nav.pull-right
        = render 'shared/admin_nav'

%nav.navbar.navbar-default.navbar-fixed-top.main-nav.center{:style => 'margin-top: 40px;'}
  .container-fluid
    %ul.nav.navbar-nav
      %li.nav-item{:class => get_nav_link_class('dashboards') }
        = link_to dashboards_path do
          %i.fa.fa-home.fa-2x
          %br
          Home

      -# render the engine main nav components if there are any
      - SystemConfig.transam_module_names.each do |mod|
        = render :partial => "shared/#{mod}_main_nav" rescue nil
      
      -# render the application main nav components if there are any
      = render :partial => 'shared/app_main_nav' rescue nil
      
      = render 'shared/policy_nav'
      = render 'shared/reports_nav'
      
    - if current_user.has_role? :admin
      %ul.nav.navbar-nav.pull-right
        = render 'shared/admin_nav'

Enable loading nav components from the app
Enable loading nav components from the app
