# HG changeset patch # User Richard Jones # Date 1074124212 0 # Node ID c8d8d03b6d94f9eb4443129e2b455170090bbe0c # Parent 43e1f2457bf2c7d29898fa230a73a8a0071b6fb7 another example diff -r 43e1f2457bf2 -r c8d8d03b6d94 doc/customizing.txt --- a/doc/customizing.txt Sat Jan 10 21:53:27 2004 +0000 +++ b/doc/customizing.txt Wed Jan 14 23:50:12 2004 +0000 @@ -2,7 +2,7 @@ Customising Roundup =================== -:Version: $Revision: 1.107 $ +:Version: $Revision: 1.108 $ .. This document borrows from the ZopeBook section on ZPT. The original is at: http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx @@ -3654,6 +3654,28 @@ line). +Colouring the rows in the issue index according to priority +----------------------------------------------------------- + +A simple ``tal:attributes`` statement will do the bulk of the work here. In +the ``issue.index.html`` template, add to the ```` that displays the +actual rows of data:: + + + +and then in your stylesheet (``style.css``) specify the colouring for the +different priorities, like:: + + tr.priority-critical td { + background-color: red; + } + + tr.priority-urgent td { + background-color: orange; + } + +and so on, with far less offensive colours :) + ------------------- Back to `Table of Contents`_