Changes between Version 4 and Version 5 of 1.3/TracInterfaceCustomization
- Timestamp:
- Jul 6, 2019, 5:40:10 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
1.3/TracInterfaceCustomization
v4 v5 117 117 This example illustrates a technique of using `req.path_info` to limit scope of changes to one view only. For instance, to make changes only for timeline and avoid modifying other sections, use `req.path_info == '/timeline'` as the condition in a `# if` test. 118 118 119 More examples snippets for placehol sder files can be found at [trac:wiki:CookBook/SiteHtml CookBook/SiteHtml].119 More examples snippets for placeholder files can be found at [trac:wiki:CookBook/SiteHtml CookBook/SiteHtml]. 120 120 121 121 Example snippets for `style.css` can be found at [trac:wiki:CookBook/SiteStyleCss CookBook/SiteStyleCss]. 122 122 123 Note that these `site_*.html`, despite their name, can be put in a shared templates directory, see the [[TracIni#inherit-templates_dir-option|[inherit] templates_dir]] option. This could provide easier maintenance as global `site_head.html`, `site_header.html` and `site_footer.html` files can be made to `# include` any other local existing header, footer and newticket snippets. 123 === Sharing Templates in Multiple Environments 124 125 The `site_*.html` templates, despite their name, can be put in a shared templates directory, see the [[TracIni#inherit-templates_dir-option|[inherit] templates_dir]] option. This could provide easier maintenance, as global `site_head.html`, `site_header.html` and `site_footer.html` files can be made to `# include` any other local existing header, footer and newticket snippets. 124 126 125 127 == Project List #ProjectList