{% match p %} {% when ProjectCard::Ok { name, open, in_progress, closed, total } %} {{ name }} {% if *in_progress > 0 %} {{ in_progress }} in progress {% endif %} {{ open }} open {% if *in_progress == 0 %} 0 in progress {% endif %} {{ closed }} closed {% if *total > 0 %} {% endif %} {% when ProjectCard::Err { name, error } %} {{ name }} error {{ error }} {% endmatch %}