= !LoggedInScript = == Description == Ever wonder why Trac doesn't link to the user's home page from the first `metanav` "logged in as" item? I sure did. I cannot recall having an account on a site of some kind that didn't have this feature. So of course I set out to create a hack to add it to Trac. Of course you could do this sort of thing with [http://genshi.edgewall.org/ Genshi], something I'm still trying to wrap my head around and, frankly, I'm not a big fan of these XML/XSLT-based [http://genshi.edgewall.org/wiki/Documentation/xml-templates.html templating languages]. Since Trac loads [http://jquery.com/ jQuery], a !JavaScript library I happen to be a ''huge'' fan of, I thought, why not let the browser do some of the work for a change? You might think, since you are parsing the DOM and checking for certain attributes and values, won't your code break if Trac changes something in the future (remember the bad old days of "screen scraping")? While this concern certainly has some merit, if you think about it it's essentially doing the same thing as a Python/Genshi approach by manipulating the page on the fly. At any rate, this hack has no repository or download link or any of that. Just a simple code snippet. Ironically, this goes in your site.html template and it does use Genshi template markup. == Code == {{{ #!java ${select('*')} }}} == Bugs/Feature Requests == Existing bugs and feature requests for LoggedInScript are [query:status!=closed&component=LoggedInScript&order=priority here]. If you have any issues, create a [/newticket?component=LoggedInScript&owner=dwclifton new ticket]. == Recent Changes == [[ChangeLog(loggedinscript, 3)]] == Author/Contributors == * '''Author:''' [wiki:dwclifton] * '''Contributors:''' [http://ejohn.org/ John Resig]