在Trac中(1.2)我想創建一個報告,其中所有票據按照修改時間排序,其中顏色應指示組件(或者它是否已關閉)。如何按組件對Trac報告中的票據進行着色?
我認爲設置由component
__color__
會做的伎倆,但報告以下報告顯示所有活動門票白色:
SELECT
DISTINCT
component AS __color__,
(CASE status
WHEN 'closed' THEN 'color: #777; background: #ddd; border-color: #ccc;'
END) AS __style__,
id AS ticket, summary, component, milestone, status, resolution,
t.time AS created, changetime AS modified,
priority AS _priority, reporter AS _reporter, cc AS _cc
FROM ticket t
LEFT JOIN enum p ON p.name = t.priority AND p.type = 'priority'
LEFT JOIN ticket_change tc ON id = tc.ticket
ORDER BY
changetime DESC
如何更改基於票指的是什麼成分的顏色?