Version 6 (modified by Ryan J Ollos, 5 years ago) (diff)

Fixed typos.

Add context-aware css attribute


  1. Ticket color by Type ... Set css-class to type on ticket. You can design for each type of ticket with trac:wiki:CookBook/SiteStyleCss feature.
  2. Decayed Wiki ... Indicate how old the wiki page is. You can specify colors by age in seconds at trac.ini.
  3. Ticket Link Decoration by field value ... Set css-class to link to tickets by field value. You can specify field names at trac.ini.

Bugs/Feature Requests

Existing bugs and feature requests for ContextChromePlugin are here.

If you have any issues, create a new ticket.


Download the zipped source from [download:contextchromeplugin here].


You can check out ContextChromePlugin from here using Subversion, or browse the source with Trac.


example trac.ini:

[components] = enabled
contextchrome.linkdeco.ticketlinkdecorator = enabled = enabled

Decayed Wiki

example trac.ini:

decay_colors = 86400:#ffffff, 604800:#eeeeee, 2678400:#dddddd, 31536000:#aaaaaa, 2147483647: #777777

background of wiki pages are colored by age, white for modified in a day, light grey for in a week, and so on.

Ticket link decoration by field value

example trac.ini:

decorate_fields = owner, milestone

example style.css:

.ticket.admin {border: thin solid maroon; }

TracLinks to tickets that owned by admin is decorated.

Tikcet color by Type

example style.css:

body.defect      { background-color: #f5deb3; /* wheat */    }
body.enhancement { background-color: #87ceeb; /* sky blue */ }
body.task        { background-color: #ffd700; /* gold */     }

Recent Changes

16910 by matobaa on 2017-10-23 12:45:29
refs #13309 cleanup
16909 by matobaa on 2017-10-23 12:43:30
Fixes #13309

I cannot reproduce your problem, but I tried to solve it. please confirm this fix.

16908 by matobaa on 2017-10-23 10:20:58
Fixes #13299




Author: matobaa
Maintainer: matobaa

Attachments (5)

Download all attachments as: .zip