On Thu, 2010-07-08 at 07:34 -0700, Brian Meeker wrote:
> Have you added your site.css to site.html as described here?
> http://trac.edgewall.org/wiki/TracInterfaceCustomization#SiteAppearance
Indeed I have. It mentions having these things in a 'templates'
directory in the trac instance. You say in an 'htdocs' directory. Which
is correct? I have been using the templates directory as mentioned in
the link above. Since it seems too have no effect, I have asked in this
thread. In fact, it seems to make no difference where I locate the files
(htdocs and/or templates). Nothing happens.
In my trac.ini file:
# Definition of an 'in testing' group:
inTesting = testing
inTesting.order = 2
inTesting.css_class = testing
inTesting.label = in testing
# Definition of an 'info needed' group:
infoNeeded = infoneeded
infoNeeded.order = 3
infoNeeded.css_class = info
infoNeeded.label = info needed
My style.css (in both %TRAC_PROJECT_ROOT%/htdocs and %TRAC_PROJECT_ROOT
%/templates):
table.progress td.testing { background: #ff0000 }
table.progress td.info { background: #baefba }
My site.html (in both %TRAC_PROJECT_ROOT%/htdocs and %TRAC_PROJECT_ROOT
%/templates):
<html xmlns="http://www.w3.org/1999/xhtml"
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>
I restarted the apache server and reloaded the page. The groups defined
in the trac.ini file are used. But the css part is not changed. The 'in
testing' group is about 50%. So I should see something.
>
> I don't think your site.css will be loaded if you don't include it
> there.
>
> We use the following
>
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:py="http://genshi.edgewall.org/" py:strip="">
>
> <!-- Add the site specific stylesheet. -->
> <head py:match="head" py:attrs="select('@*')">
> ${select('*|comment()|text()')}
> <link rel="stylesheet" type="text/css" href="${href.chrome('site/
> style.css')}" />
> </head>
> </html>
>
> style.css is then located at %TRAC_PROJECT_ROOT%/htdocs/style.css.
>
> On Jul 8, 9:42 am, Roger Oberholtzer <[email protected]>
> wrote:
> > On Thu, 2010-07-08 at 08:00 -0500, Olemis Lang wrote:
> > > On Tue, Jun 29, 2010 at 5:49 AM, Micha <[email protected]>
> > > wrote:
> > > > Hi all!
> >
> > > :)
> >
> > > > I'm a little confused. On my system (Ubuntu + trac 0.11.7 +
> > > > TracMetrixPlugin + several plugins), I've chosen the
> > > > ProgressTicketGroupStatsProvider from TracMetrix for the roadmap view.
> >
> > > > It renders closed tickets green. Ok so far. But inprogress tickets are
> > > > rendered white (or no color) and open tickets are rendered light
> > > > yellow.
> > > > In contrast, on the TracMetrix page, inprogress tickets are yellow and
> > > > new ones are white, what I expected.
> >
> > > I've been able to do things LIKE this by using TracThemeEngine to
> > > override default colors in CSS.
> >
> > > Probably there's a better solution so as to avoid using the hammer
> > > (but I don't know of any :( ... )
> >
> > My question in this thread was why my changes to the site.css file were
> > having no effect. I followed the advice on t.e.o, but nada.
> >
> > I see this in my trac log file:
> >
> > Trac[main] WARNING: HTTPNotFound: 404 Not Found (No handler matched request
> > to /ticket/site.css)
> >
> > I have done no customization yet. So what would a pristine site.html and
> > site.css look like? And, more interestingly, what changes would be
> > needed to get css_class controlling color to work:
> >
> > http://trac.edgewall.org/wiki/TracRoadmapCustomGroups242
> >
> > I have added the suggested lines to my site.css file. But I suspect
> > there should be more. And perhaps there is something wrong with my
> > site.html file.
> >
> > I browsed the source on t.e.o to see what a newly installed site.html
> > and site.css looks like. I did not see them...
> >
> > Good thing I have a day job...
> >
> > --
> > Roger Oberholtzer
>
--
Roger Oberholtzer
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.