{{- define "navitems"}} {{- block "additionalnavitems" .}}{{- end}} {{- template "theme-switcher"}}
{{- end}} {{- define "sidebaritems"}} {{- if .LoggedUser.HasPermission "view_users"}} {{- end}} {{- if .LoggedUser.HasPermission "manage_groups"}} {{- end}} {{- if .LoggedUser.HasPermission "manage_folders"}} {{- end}} {{- if .LoggedUser.HasPermission "view_conns"}} {{- end}} {{ if .LoggedUser.HasPermission "manage_event_rules"}} {{- end}} {{- if or (.LoggedUser.HasPermission "manage_ip_lists") (and .HasDefender (.LoggedUser.HasPermission "view_defender"))}} {{- end}} {{- if or (.LoggedUser.HasPermission "manage_system") (.LoggedUser.HasPermission "view_status") (and .HasSearcher (.LoggedUser.HasPermission "view_events"))}} {{- end}} {{- if .LoggedUser.HasPermission "manage_admins"}} {{- end}} {{- if .LoggedUser.HasPermission "manage_roles"}} {{- end}} {{- end}}