[rt-users] colored ticket lists
Stefan Scherer
stefan.scherer at sealsystems.de
Wed Aug 14 10:47:48 EDT 2002
> > I have modified some code to have colored ticket lists
> > just like in sourceforge.net.
>
> I tweaked it to show colors based on status (open = green, red =
> stalled).
>
> How'd you do it? I just updated the Search/Listing.html template in my
> local RT directory.
Yes, I also modified Search/Listing.html. Additionally I also changed
Elements/MyRequests and Elements/MyTickets.
So we also can see high priority tickets in the home page of each member.
It's about the same code in all the files.
Here is a diff of Elements/MyTickets (I'm using RT version 2.0.12)
9a10,15
> % my $bgcolor;
> % my @todo_colors = ( "#dadada", "#dad0d0",
> % "#dacaca", "#dac0c0",
> % "#dababa", "#dab0b0",
> % "#daaaaa", "#da9090",
> % "#da8a8a", "#da7070" );
11c17,20
< <TR>
---
> % my $prio = eval("\$Ticket->Priority");
> % $bgcolor = $todo_colors[$prio];
>
> <TR bgcolor="<%$bgcolor%>" >
More information about the rt-users
mailing list