Changes between Version 28 and Version 29 of ContextChromePlugin
- Timestamp:
- Dec 7, 2015, 10:08:56 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ContextChromePlugin
v28 v29 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = Add context-aware CSS attribute3 = Add context-aware styles to Trac page widgets 4 4 5 5 == Description 6 6 7 This plugin offers features to style your pages and page widgets depending onthe type of ticket you are dealing with.7 This plugin offers the capability to style your Trac pages and page widgets according to the type of ticket you are dealing with. 8 8 9 9 Key features: 10 1. Wiki Link Decoration by age of wiki page: add "new" css-class to link to wiki page that is young. You can specify the agesin `trac.ini`.11 1. Decayed Wiki: indicate how old the wiki page is. You can specify colors by age in seconds at `trac.ini`; so far this featurerequires Python 2.7 or later.10 1. Wiki Link Decoration by age of wiki page: add "new" css-class to link to a wiki page that is recent. You can specify the age in `trac.ini`. 11 1. Decayed Wiki: indicate how old the wiki page is. You can specify colors by age in seconds at `trac.ini`; requires Python 2.7 or later. 12 12 1. Ticket Link Decoration by field value: Set css-class to link to tickets by field value. You can specify field names at `trac.ini`. 13 13 1. Decorate over intertrac links, with XmlRpcPlugin and [browser:/contextchromeplugin/0.12/contextchrome/cors.py corsEnabler] included. … … 16 16 1. marked for validation: Set css-class to field specified by validator, such as TracTicketValidatorPlugin or TracTicketConditionalValidatePlugin. 17 17 18 If you want to edit the CSS inline in the browser, use WikiCssPlugin or ThemeEnginePlugin. If you want to modify the decoration link to a new page, edit the fi els site.html and site.css.18 If you want to edit the CSS inline in the browser, use WikiCssPlugin or ThemeEnginePlugin. If you want to modify the decoration link to a new page, edit the files site.html and site.css. 19 19 20 20 == Bugs/Feature Requests … … 42 42 == Example 43 43 44 Sample trac.ini:44 Sample `trac.ini` stanza: 45 45 {{{#!ini 46 46 [components] … … 54 54 === Wiki age to decorate or not 55 55 56 Example trac.ini:56 Example `trac.ini`: 57 57 {{{#!ini 58 58 [wiki] … … 64 64 === Decayed Wiki 65 65 66 Sample trac.ini:66 Sample `trac.ini` where the background of wiki pages are colored by age, ie white for modified in a day, light grey for in a week, and so on: 67 67 {{{#!ini 68 68 [wiki] … … 70 70 }}} 71 71 72 background of wiki pages are colored by age, white for modified in a day, light grey for in a week, and so on.73 74 72 === Ticket link decoration by field value 75 73 76 Sample trac.ini:74 Sample `trac.ini`: 77 75 {{{#!ini 78 76 [ticket] … … 110 108 Enable required TracTicketValidatorPlugin. 111 109 112 Sample trac.ini:110 Sample `trac.ini`: 113 111 {{{#!ini 114 112 [ticketvalidator]