b/15598720 Color coding of all related objects in trees

Blocks like this are the reason why I wrote the {{#switch}} helper.

(Nothing is wrong with the code here; I just find using if more than three times to compare the same item against different values to be ugly as sin)