Convert task label to use helper and clean up code

This commit adds a quick helper function to clean up some of the view
html templates. Instead of doing ng-if to check states, it uses a
controller helper function to determine which label it will use.