{{- $data := ctx.RootData.PageGlobalData}}{{/* data may not exist, for example: rendering 503 page before the PageGlobalData middleware */}} {{if and $data $data.IsSigned (not ctx.RootData.MustChangePassword) -}} {{if EnableTimetracking}} {{$activeStopwatch := call $data.GetActiveStopwatch -}} {{/* always rendered so a real-time push can reveal it without a reload */}} {{if not $activeStopwatch}}{{$activeStopwatch = dict}}{{end}}{{/* mock an empty stopwatch */}}
{{end}} {{$notificationUnreadCount := call $data.GetNotificationUnreadCount -}}