I am configuring a trac installation (ver 0.12) at the moment and I am trying to make the startingpage a bit more talkative.
In the report module of trac it was possible to change the backgroundcolor of a ticket according to its priority using SQL as described here, but I did not find any information on how to change it in the TicketQuery macro.
Can anybody give me a hint?
regards, Chris
The colors are defined by CSS classes in report.css of Trac core for ticket tables generated by reports, custom query and the TicketQueryMacro. So you can only change this site-wide in Trac 0.12 by adding custom styles.
The appropriate CSS statements to add to your own style.css are (with default values):
These max 6 prio's corresponding to slightly different odd/even row color each ranging from red over grey to blue. Only 5 prio's are used per default, prio6 defaults are in darker gray again.
Order matters, make sure to have your priority names properly sorted in the priority admin panel (http://<host>:<port>/<env>/admin/ticket/priority
).