Re: [Trac] style.css content.ticket with Jinja2

2019-11-29 Thread Mo
Am Freitag, 29. November 2019 10:34:33 UTC+1 schrieb Jun Omae:
>
> On Fri, Nov 29, 2019 at 5:58 PM Mo > 
> wrote: 
> > ## htdocs/report.css: 
> ^^ 
>
> > ## templates/site_head.html: 
> >  
> >  
>^^^ 
>
> Not matched. You could find such issues using Network Monitor of 
> Developer tools in your browser. 
>

My mistake. But in Developer tools -> Network I don't see that issue. All 
GET are 200 OK. But filtering for CSS I can't see any CSS loaded on a 
/report reload.
Also in the Console there is no GET for any .css file, only lots of .js. 
Sorry, I'm not the web developer.
Anyway, fixing the typo and it works. Thanks.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/e9faa1e3-a76d-4d95-9bac-3f98437171a4%40googlegroups.com.


Re: [Trac] style.css content.ticket with Jinja2

2019-11-29 Thread Jun Omae
On Fri, Nov 29, 2019 at 5:58 PM Mo  wrote:
> ## htdocs/report.css:
^^

> ## templates/site_head.html:
> 
> 
   ^^^

Not matched. You could find such issues using Network Monitor of
Developer tools in your browser.

-- 
Jun Omae  (大前 潤)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAEVLMahH965DAUShzX8rQPMCrHoXgXYNH9usO0AAzzODN89Pxg%40mail.gmail.com.


Re: [Trac] style.css content.ticket with Jinja2

2019-11-29 Thread Mo
Am Montag, 18. November 2019 15:37:27 UTC+1 schrieb Mo:
 

> $ cat ~/var/trac/1.4-sqlite/templates/site_head.html 
>>  
>>
>
> This one I didn't have anymore...
> Works now, thanks.
>


Coming from https://trac.edgewall.org/ticket/13226#comment:7 ...
how do I customize multiple css?

Currently I have this:

$ cd $PROJECTENV
$ for file in htdocs/style.css htdocs/report.css templates/site_head.html; 
do echo -e "\n## $file:";cat $file;done

## htdocs/style.css:
body #content.ticket {
width: auto;
max-width: 1400px;
}

body #content.narrow #wikipage {
max-width: 1400px;
}

## htdocs/report.css:
.report div.reports h3 :link, .report div.reports h3 :visited {
color: #000;
border-bottom: 1px dotted lightgrey;
display: block;
}

## templates/site_head.html:



After that I deployed like 
trac-admin $PROJECTENV deploy $PROJECTENV/static

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/e4fcd163-d8ba-4f4f-be2b-081b284201d3%40googlegroups.com.


Re: [Trac] style.css content.ticket with Jinja2

2019-11-18 Thread Mo
Am Montag, 18. November 2019 13:53:31 UTC+1 schrieb Jun Omae:
>
> Works fine in my environment. See attached image, custom-style.png. 
>

Now it works here as well: 
  

> $ cat ~/var/trac/1.4-sqlite/htdocs/style.css 
> body #content.ticket { width: auto; max-width: 1400px } 
>

We have been talking about a /htdocs/ticket.css. I renamed my file now.
 

> $ cat ~/var/trac/1.4-sqlite/templates/site_head.html 
>  
>

This one I didn't have anymore...
Works now, thanks. 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/4eacc246-ed46-4dd2-9354-669d9ed55eb6%40googlegroups.com.


Re: [Trac] style.css content.ticket with Jinja2

2019-11-18 Thread Jun Omae
On Mon, Nov 18, 2019 at 9:42 PM Jun Omae  wrote:
>
> On Mon, Nov 18, 2019 at 9:35 PM Mo  wrote:
> > as usual. But still does not work. The page source of a ticket contains:
> >
> >  > type="text/css">
>
> Instead, you should confirm the following line in ticket view:
>
>  />

Works fine in my environment. See attached image, custom-style.png.

My Trac Env is ~/var/trac/1.4-sqlite.

$ cat ~/var/trac/1.4-sqlite/htdocs/style.css
body #content.ticket { width: auto; max-width: 1400px }

$ cat ~/var/trac/1.4-sqlite/templates/site_head.html


-- 
Jun Omae  (大前 潤)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAEVLMain3a%3DjdRCEV9hMJkZP0-Daqjv21ZeXH%3DAOO%2BJwRZRaLQ%40mail.gmail.com.


Re: [Trac] style.css content.ticket with Jinja2

2019-11-18 Thread Mo
Am Montag, 18. November 2019 13:42:50 UTC+1 schrieb Jun Omae:

> Instead, you should confirm the following line in ticket view: 
>
>  type="text/css" /> 
>

I cannot confirm. Searching for "ticket.css" in the source of a ticket, I 
can only find



Is there something wrong in the webserver configuration or static 
deployment here?

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/23e15294-961a-40ce-89e8-bd2473d8da0b%40googlegroups.com.


Re: [Trac] style.css content.ticket with Jinja2

2019-11-18 Thread Jun Omae
On Mon, Nov 18, 2019 at 9:35 PM Mo  wrote:
> as usual. But still does not work. The page source of a ticket contains:
>
>  type="text/css">

Instead, you should confirm the following line in ticket view:




-- 
Jun Omae  (大前 潤)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAEVLMagkWv4iGbnyS0aFuqBQ-gpdnSHQcEEs0T9YwjhOKE9LTA%40mail.gmail.com.


Re: [Trac] style.css content.ticket with Jinja2

2019-11-18 Thread Mo
Am Montag, 18. November 2019 11:16:30 UTC+1 schrieb Jun Omae:
>
> Try the following steps: 
>
>  1. Confirm Your $ENV/htdocs/ticket.css is readable via your browser 
> with force-reload. 
>
> e.g. $ curl http://your-hostname/trac-pp/site/ticket.css 
>  (Correct with your Trac project's URL) 
>

Error: Not Found
No handler matched request to /site/ticket.css

But the URL http://my-hostname/trac-pp/chrome/site/ticket.css
gets the following content from my deployed file:

body #content.ticket { width: auto; max-width: 1400px } 

 2. Confirm your rules in $ENV/htdocs/ticket.css work as expected 
> using Developer tools in Chrome. 
>
> If your rules do not work as expected, fix the rules in 
> $ENV/htdocs/ticket.css. 
>
> Also, I suggest to use the following rules to overwrite 
> "#content.ticket": 
>
> body #content.ticket { 
>   width: auto; 
>   max-width: 1400px 
> } 
>

I pasted these lines to my $ENV/htdocs/ticket.css, then did

trac-admin $ENV deploy $ENV/static

as usual. But still does not work. The page source of a ticket contains:



Inside this ticket.css there is

#content.ticket { width: 56em; max-width: 100%; margin-left: auto; 
margin-right: auto; }

So my definition does not seem to arrive there.
Same when I try the Firefox Developer Tools, { } Style Editor, I see the 
ticket.css with 101 rules and this content above...

 
Best regards,
Mo

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/71fb9b20-d142-4011-b75e-42b97a93a05b%40googlegroups.com.


Re: [Trac] style.css content.ticket with Jinja2

2019-11-18 Thread Jun Omae
On Mon, Nov 18, 2019 at 6:21 PM Mo  wrote:
>
> Am Freitag, 15. November 2019 21:34:31 UTC+1 schrieb Jonathan Laufersweiler:
>>
>> https://trac.edgewall.org/browser/tags/trac-1.4/trac/htdocs/css/ticket.css
>
> There is also a #content.ticket section. I added my previous setting there 
> and deployed, but it is not used:
>
> $ cat ~/projects/trac-pp/htdocs/ticket.css
> #content.ticket {
> width: auto;
> max-width: 1400px
> }

Try the following steps:

 1. Confirm Your $ENV/htdocs/ticket.css is readable via your browser
with force-reload.

e.g. $ curl http://your-hostname/trac-pp/site/ticket.css
 (Correct with your Trac project's URL)

If not readable, fix it.

 2. Confirm your rules in $ENV/htdocs/ticket.css work as expected
using Developer tools in Chrome.

If your rules do not work as expected, fix the rules in
$ENV/htdocs/ticket.css.

Also, I suggest to use the following rules to overwrite "#content.ticket":

body #content.ticket {
  width: auto;
  max-width: 1400px
}


If unable to fix the issue, please describe the details of your
encountered issues and what you did to fix it.

-- 
Jun Omae  (大前 潤)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAEVLMag_beF3%2BGRxj1_V72W5q0ufY2YoJEqxLsgr1ja1CDWgXA%40mail.gmail.com.


Re: [Trac] style.css content.ticket with Jinja2

2019-11-18 Thread Mo
Am Freitag, 15. November 2019 21:34:31 UTC+1 schrieb Jonathan Laufersweiler:
>
>
> https://trac.edgewall.org/browser/tags/trac-1.4/trac/htdocs/css/ticket.css  
>
>

There is also a #content.ticket section. I added my previous setting there 
and deployed, but it is not used:

$ cat ~/projects/trac-pp/htdocs/ticket.css 
#content.ticket {
width: auto;
max-width: 1400px
}



-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/c559e9e8-28b7-447f-b7d8-f7541880e31a%40googlegroups.com.


Re: [Trac] style.css content.ticket with Jinja2

2019-11-15 Thread Jonathan Laufersweiler
>
> In the sources of a ticket package I can't find that .css anymore


Here's the stock ticket.css for the 1.4 branch:
https://trac.edgewall.org/browser/tags/trac-1.4/trac/htdocs/css/ticket.css
The others live in that directory too, rather than with their modules.

Best,
--Jonathan Laufersweiler

On Fri, Nov 15, 2019 at 8:24 AM Mo  wrote:

> Am Freitag, 15. November 2019 09:24:15 UTC+1 schrieb Jun Omae:
>
>> Try to use site_head.html file.
>> See
>> https://trac.edgewall.org/wiki/TracInterfaceCustomization#SiteAppearance.
>>
>>
>
> Ok, what do I need there to change the width. I found the example:
>
> 
> 
> 
>
> ..which makes use of the style.css again. I deployed both as static
> content. In the sources of a ticket package I can't find that .css anymore.
> What do I need to change the page width. I feel like that should be a
> configuration option anyway or should be adapting to modern screen
> resolutions.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to trac-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/trac-users/1af33081-4480-4dbe-afe7-1003e3050148%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CALF_GDHr3J-AatRNp%2BZUkb19jF7tVvy%3D8ML3LeeYtBxWasG0fg%40mail.gmail.com.


Re: [Trac] style.css content.ticket with Jinja2

2019-11-15 Thread Mo
Am Freitag, 15. November 2019 09:24:15 UTC+1 schrieb Jun Omae:

> Try to use site_head.html file. 
> See 
> https://trac.edgewall.org/wiki/TracInterfaceCustomization#SiteAppearance. 
>

Ok, what do I need there to change the width. I found the example:





..which makes use of the style.css again. I deployed both as static 
content. In the sources of a ticket package I can't find that .css anymore. 
What do I need to change the page width. I feel like that should be a 
configuration option anyway or should be adapting to modern screen 
resolutions.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/1af33081-4480-4dbe-afe7-1003e3050148%40googlegroups.com.


Re: [Trac] style.css content.ticket with Jinja2

2019-11-15 Thread Jun Omae
On Fri, Nov 15, 2019 at 4:58 PM Mo  wrote:
>
> Hi,
> after migrating from Trac 1.2.3 to 1.4, my custom style.css does not work 
> anymore. I have this to make tickets use more horizontal space on our default 
> 24" 1920px screens:
>
> $ cat htdocs/style.css
> #content.ticket
> {
> width: auto;
> max-width: 1400px;
> }
>
>
> I guess this is caused by the genshi > Jinja2 migration. How can I do this 
> modification now?
>
> Best regards.

Try to use site_head.html file.
See https://trac.edgewall.org/wiki/TracInterfaceCustomization#SiteAppearance.

-- 
Jun Omae  (大前 潤)

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/CAEVLMahrU-v4_WP1gVgX_JEXJq3Ar7GKO8m6vGMtF3UMvXYL9A%40mail.gmail.com.


[Trac] style.css content.ticket with Jinja2

2019-11-14 Thread Mo
Hi,
after migrating from Trac 1.2.3 to 1.4, my custom style.css does not work 
anymore. I have this to make tickets use more horizontal space on our 
default 24" 1920px screens:

$ cat htdocs/style.css 
#content.ticket
{
width: auto;
max-width: 1400px;
}


I guess this is caused by the genshi > Jinja2 migration. How can I do this 
modification now?

Best regards.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/d5e44489-6a6a-4dee-8ed5-b20e495b5b3e%40googlegroups.com.