It seems if I add new ticket priorities and delete existing ones via
the Administration web interface, the list of priority order values
increases and old order values disappear. For example, I now have
order value from 6 to 10, rather than the default 1 to 6. As a result,
I have lost coloring of ticket rows in query lists since row color is
based on ticket priority number.

The way I figured out to work around this was to update my trac/
myproject/template/site.html file with the following:

    <html xmlns="http://www.w3.org/1999/xhtml";
          xmlns:py="http://genshi.edgewall.org/"; py:strip="">
      <!--! Custom match templates go here -->
      <head py:match="head" py:attrs="select('@*')">
        ${select('*|comment()|text()')}
        <link rel="stylesheet" type="text/css"
              href="${href.chrome('site/style.css')}" />
      </head>
    </html>

And then add the following to my trac/myproject/htdocs/style.css file

    /* my new highest */
    table.tickets tbody tr.prio6 { background: #fdc; border-color:
#e88 }
    table.tickets tbody tr.even.prio6 { background: #fed; border-
color: #e99 }
    /* high */
    table.tickets tbody tr.prio7 { background: #ffb; border-color:
#eea }
    table.tickets tbody tr.even.prio7 { background: #ffd; border-
color: #dd8 }
    /* normal */
    table.tickets tbody tr.prio8  { background: #fbfbfb; border-color:
#ddd }
    table.tickets tbody tr.even.prio8 { background: #f6f6f6; border-
color: #ccc }
    /* low */
    table.tickets tbody tr.prio9 { background: #e7ffff; border-color:
#cee }
    table.tickets tbody tr.even.prio9 { background: #dff; border-
color: #bee }
    /* lowest */
    table.tickets tbody tr.prio10 { background: #e7eeff; border-color:
#cde }
    table.tickets tbody tr.even.prio10 { background: #dde7ff }

If this is not the correct way to do it, please inform me. I hope this
helps someone else.

Note: Trac 0.11.5 with report module disabled.

Caleb

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to