[% settings.branding_text | none %]

[% FOREACH add_js IN settings._additional_javascript %]
[% END %] [% FOREACH add_css IN settings._additional_css %] [% END %]
[% settings.branding_text | none %] [% IF session.logged_in_user %]

[% FOREACH ni IN settings._navbar_items %] [% ni.label | html_entity %] [% END %] [% IF settings._reports.size %]
- Reports
  [% FOREACH category IN settings._report_order %] [% IF settings._reports_menu.$category.size %]
  - [% category | html_entity %]
    [% FOREACH item IN settings._reports_menu.$category %] [% NEXT IF settings._reports.$item.hidden %]
    - [% settings._reports.$item.label | html_entity %]
    [% END %]
  [% END %] [% END %]
[% END %] [% IF user_has_role('admin') %]
- Admin
  [% IF settings._admin_tasks.size %]
  [% FOREACH ai IN settings._admin_order %] [% NEXT IF settings._admin_tasks.$ai.hidden %]
  - [% settings._admin_tasks.$ai.label | html_entity %]
  [% END %] [% END %]
[% END %]

- Search Devices
- Search Nodes
- Search VLANs
- Search Ports

[% IF settings.tenant_databases.size %] [% SET tenant = vars.tenant %]

- [% (settings.tenant_data.$tenant.displayname || settings.database.displayname || 'Default') | html_entity %]
  [% FOREACH t IN settings.tenant_tags %] [% NEXT IF tenant AND t == tenant %] [% NEXT IF NOT tenant and t == 'netdisco' %]
  - [% settings.tenant_data.$t.displayname | html_entity %]
  [% END %]

[% END %]

- [% IF user_has_role('admin') %] [% ELSIF user_has_role('port_control') %] [% ELSE %] [% END %] [% session.logged_in_fullname || session.logged_in_user | html_entity %]
  [% IF NOT ( settings.no_auth OR user_has_role('ldap') OR user_has_role('radius') ) %]
  - Change Password
  [% END %]
  - 👉 Browse the API
  [% IF user_has_role('admin') %]
  - ⚙️ Configuration Reference
  - 💜 Become a Sponsor
  [% END %] [% IF NOT settings.no_auth %]
  - Log Out
  [% END %]

[% END %]
[% content | none %]