Edgewall Software
Modify

Opened 18 years ago

Closed 17 years ago

#4092 closed defect (duplicate)

site.html in environment templates is ignored

Reported by: Markus Tacker <m@…> 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 Noah Kantrowitz (coderanger) <coderanger@…>, 18 years ago

You can see if the SysCss plugin still works on trunk.

comment:2 by Christian Boos, 18 years ago

Resolution: worksforme
Status: newclosed

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 Markus Tacker <m@…>, 18 years ago

Resolution: worksforme
Status: closedreopened

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 Christopher Lenz, 18 years ago

Resolution: worksforme
Status: reopenedclosed

Please see this mailing list thread. This stuff needs to be documented on TracInterfaceCustomization, but it works.

comment:5 by Markus Tacker <m@…>, 18 years ago

Resolution: worksforme
Status: closedreopened
Summary: Have a single file for css changes like site_css.cssite.html in environment templates is ignored
Type: enhancementdefect

Ok, thanks. It works globally but the environment specific site.html ist ignored.

comment:6 by Christian Boos, 18 years ago

Keywords: verify added
Milestone: 0.11

comment:7 by Matthew Good, 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 Christian Boos, 17 years ago

Milestone: 0.11.1
Resolution: duplicate
Status: reopenedclosed

Duplicate of #3865. This should work now.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.