Mercurial > p > roundup > code
changeset 1966:c8d8d03b6d94
another example
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 14 Jan 2004 23:50:12 +0000 |
| parents | 43e1f2457bf2 |
| children | d30cd44321f2 |
| files | doc/customizing.txt |
| diffstat | 1 files changed, 23 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 ``<tr>`` that displays the +actual rows of data:: + + <tr tal:attributes="class string:priority-${i/priority/plain}"> + +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`_
