id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
3180	[Patch] Allow info in template	trac@tigris.id.au	coderanger	\r\n{{{\r\n--- web_ui.py.orig_2008-06-13 09:58:46.000000000 +1000\r\n+++ web_ui.py_2008-06-13 09:58:51.000000000 +1000\r\n@@ -40,4 +40,6 @@\r\n             add_stylesheet(req, 'theme/'+theme['css'])\r\n         if theme and 'template' in theme:\r\n             req.chrome['theme'] = os.path.basename(theme['template'])\r\n+        if theme:\r\n+            req.chrome['theme_info'] = theme\r\n         return template, data, content_type\r\n}}}\r\n\r\n\r\nThe above code block allows you to get at your theme info by using {{{ chrome['theme_info']['some_thing_you_want'] }}}.\r\n\r\nThis allows you define extra stuff in your theme.py if you overload the get_theme_info() method, as I have done to allow for a color setting in a theme i will be uploading shortly. Without the above patch it will not be possible to use a different color of the same theme by simply putting a line in the trac.ini\r\n\r\nIt would be nice if you could apply the above patch, or have some other way of getting at the [theme] stuff from trac.ini in the template. Like how you can get at the footer/about info from there.\r\n\r\n\r\nregards,\r\nDanial	enhancement	new	low	ThemeEnginePlugin	minor				0.11
