Moved the display logic of home and away races to the templates involved