trac style customize : priority color

プライオリティーはデフォルト5種類ですが、
直近対応するべきタスクに付けるように high を入れてみた。

http://trac.edgewall.org/wiki/CookBook/SiteStyleCss

http://stackoverflow.com/questions/9585931/control-over-trac-ticketquery-is-it-possible-to-change-the-ticket-color-accordi

スタイルのこの辺を替えるらしい。
table.tickets tbody tr.prio1

# templates/site.html を作る
style.cssを入れたいだけなのでこれだけ

<html xmlns=”http://www.w3.org/1999/xhtml”
     xmlns:xi=”http://www.w3.org/2001/XInclude”
     xmlns:py=”http://genshi.edgewall.org/”
     py:strip=””>
 <!–! Add site-specific style sheet –>
 <head py:match=”head” py:attrs=”select(‘@*’)”>
 ${select(‘*|comment()|text()’)}
 <link rel=”stylesheet” type=”text/css”
 href=”${href.chrome(‘site/style.css’)}” />
 </head>

</html>

httpdを再起動するとheadの一番下に

 <link rel=”stylesheet” type=”text/css” href=”/trac/chrome/site/style.css” />
 </head>

こんな感じ。

あとは、上書きしたいスタイル部分を htdocs/site/style.css に書く。
# htdocs/site/style.css

table.tickets tbody tr.prio3  { background: #fbfbfb; border-color: #ddd }
table.tickets tbody tr.even.prio3 { background: #f6f6f6; border-color: #ccc }
table.tickets tbody tr.prio4  { background: #fbfbfb; border-color: #ddd }
table.tickets tbody tr.even.prio4 { background: #f6f6f6; border-color: #ccc }
table.tickets tbody tr.prio5 { background: #e7ffff; border-color: #cee }
table.tickets tbody tr.even.prio5 { background: #dff; border-color: #bee }
table.tickets tbody tr.prio6 { background: #e7eeff; border-color: #cde }
table.tickets tbody tr.even.prio6 { background: #dde7ff }
table.tickets tbody tr.prio7 { background: #f0f0f0; border-color: #ddd }
table.tickets tbody tr.even.prio7 { background: #f7f7f7 }

3,4を一緒にして一つずつづらしただけ。

This entry was posted on 木曜日, 4月 4th, 2013 at 8:47 AM and is filed under Trac. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。