Opened 18 years ago
Closed 18 years ago
#4092 closed defect (duplicate)
site.html in environment templates is ignored
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | devel |
Severity: | normal | Keywords: | verify |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
With the new template engine I have to maintain a local copy of layout.html
and all other templates in the environment even if I only change the CSS.
If the templates get updated I have to merge the changes by hand.
Please re-enable the old behaviour.
Attachments (0)
Change History (8)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Please check r3992, placing the CSS in the site.html
file should do, no need to have your local copies of the templates.
comment:3 by , 18 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
If I have a <env>/templates/site.html
it is ignored.
If I have a /usr/share/trac/templates/site.html
it is included before the head tag, also the /usr/share/trac/templates/layout.html
includes the site.html
below the body tag.
Both is not a desired behaviour as the CSS has to be in the <head>
.
comment:4 by , 18 years ago
Resolution: | → worksforme |
---|---|
Status: | reopened → closed |
Please see this mailing list thread. This stuff needs to be documented on TracInterfaceCustomization, but it works.
comment:5 by , 18 years ago
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Summary: | Have a single file for css changes like site_css.cs → site.html in environment templates is ignored |
Type: | enhancement → defect |
Ok, thanks. It works globally but the environment specific site.html ist ignored.
comment:6 by , 18 years ago
Keywords: | verify added |
---|---|
Milestone: | → 0.11 |
comment:7 by , 18 years ago
If you have templates of the same name in two places the first one found on the load path will be used, so you can't name both of them "site.html". The one in the environment should take precedence, though if it's been added while Trac is running the template loader will be using the "site.html" found in its template cache, which is why the project one is overridden. In order to use both a global template and a local one you can name the global one "site.html" and then put an xi:include tag in that file which refers to another filename you'll use within your projects as a local template.
comment:8 by , 18 years ago
Milestone: | 0.11.1 |
---|---|
Resolution: | → duplicate |
Status: | reopened → closed |
Duplicate of #3865. This should work now.
You can see if the SysCss plugin still works on trunk.