Improve logic for cohort visibility labels

TNL-25
We have recently made a change to make the cohorted setting for the course available to the front end. I think we should use that here to conditionally render the label, and the presence/absence of the group_id or group_name can be used to select what string to render.