MDL-42832 course: management viewmode string improvements