summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eef147f)
raw | patch | inline | side by side (parent: eef147f)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 14 Jan 2004 23:50:12 +0000 (23:50 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 14 Jan 2004 23:50:12 +0000 (23:50 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2034 57a73879-2fb5-44c3-a270-3262357dd7e2
doc/customizing.txt | patch | blob | history |
diff --git a/doc/customizing.txt b/doc/customizing.txt
index 3ecc7f5777d12c2430d455d159228f8d8dee191f..35019973e8f04b6bbcffcd826edb41438d48ccba 100644 (file)
--- a/doc/customizing.txt
+++ b/doc/customizing.txt
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
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`_