When I create a report I can filter the results based on the logged on user name using the $USER magic variable. Is there any equivalent way to get the logged on user name at any Trac wiki page?
E.g.: The logged on user is [[User]].
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Looks like you need a plugin to do it. Nothing complex; just throw this:
Into a file like
<trac_env>/plugins/username.pyand add[[User]]to a wiki page. For non-logged in users, it’ll showanonymous.