{{ define "focus/pill" }} {{ if .Focusing }} {{ $offFocus := and .FocusLink .CurrentPath (not (hasPrefix .CurrentPath .FocusLink)) }}
{{ if $offFocus }}{{ end }}
{{ $remaining := sub .FocusCount 1 }} {{ if $offFocus }} {{ i "route-off" "size-4 animate-pulse" }} Off track {{ if gt $remaining 0 }} {{ $remaining }} remaining {{ end }} {{ else }} {{ i "telescope" "size-4" }} Focusing {{ if gt $remaining 0 }} {{ $remaining }} remaining {{ end }} {{ end }} {{ if $offFocus }} Return {{ i "undo-2" "size-4" }} {{ else }}
{{ end }}
{{ end }} {{ end }}