{{ $class := "rs-not-started" }}{{ $text := "not started" }} {{ with .Get "stage" }} {{ if (eq . "in-progress") }}{{ $class = "rs-started" }}{{ $text = "in progress" }} {{ else if (eq . "waiting") }}{{ $class = "rs-waiting" }}{{ $text = "waiting" }} {{ else if (eq . "complete") }}{{ $class = "rs-complete" }}{{ $text = "complete" }} {{ end }}{{ end }}
{{ $text }} {{ with .Get "version" }} {{ . }} {{ end }}