Edgewall Software

Ticket #2336 (closed defect: worksforme)

Opened 3 years ago

Last modified 22 months ago

"Available Projects" HTML is hard-coded

Reported by: dserodio@… Owned by: jonas
Priority: low Milestone:
Component: general Version: 0.9
Severity: normal Keywords:
Cc:

Description

The HTML for the "Available Projects" list is hard-coded in trac.web.main.py. It should be in a template file.

Attachments

Change History

Changed 3 years ago by cmlenz

  • status changed from new to closed
  • resolution set to worksforme

It can't be in a template file because templates are project-specific.

However, you can use your own ClearSilver template using the TracEnvIndexTemplate python option (for TracModPython), or TRAC_ENV_INDEX_TEMPLATE environment variable (for TracCgi, TracFastCgi and TracStandalone). Really need to document this.

Changed 3 years ago by dserodio@…

What about the templates in /usr/share/trac/templates? Aren't they "global"?

Changed 22 months ago by trac@…

For TracStandalone, couldn't it simply serve an index.html found at the path specified using the env-parent-dir?

Add/Change #2336 ("Available Projects" HTML is hard-coded)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.