Improve User Menu
The current user menu is a bit of a mess with lots of conditional code and html in header.php
This should be moved out to a renderer to make it easier to maintain.
It also requires improvement of the "loginas" feature whcih currently will ony return users to the course front page, so if you switch role from a forum or other activity you have to re-navigate from the course front page back into the activity.
Another issues is that there is no visible indication that you are acting with a different role. We could address this by hooking into the same code used to warn if you are "logged in as".
Comments (3)
-
reporter -
reporter - changed status to resolved
Fix
#635- Improve User MenuThis commit adds warning if user is acting as another role
Two prior commits were also related to
#635615b339 allows user to return to same page after switching page
0d426a1 re-factored code moving it from header.php into renderer
→ <<cset 536672dfb46e>>
-
reporter Fix
#635caused PHP notices on some macines, trying to remedy.→ <<cset b1833b766df0>>
- Log in to comment
The following two commits move code into renderer and allow user to return to original url: