Modify ↓
#8214 closed enhancement (fixed)
pass the environments into the TRAC_ENV_INDEX_TEMPLATE
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11.5 |
| Component: | web frontend | Version: | 0.11 |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
In source:trunk/trac/web/main.py, the Trac environments are opened and data is extracted from them. However, the environment itself is not passed into the template, which gives limited options for customizing the TRAC_ENV_INDEX_TEMPLATE. This can easily be fixed by replacing source:trunk/trac/web/main.py#L571
proj = {
'name': env.project_name,
'description': env.project_description,
'href': href(env_name)
}
with
proj = {
'env': env,
'name': env.project_name,
'description': env.project_description,
'href': href(env_name)
}
Attachments (0)
Change History (2)
comment:1 by , 17 years ago
| Milestone: | → 0.11.5 |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
comment:2 by , 17 years ago
| Owner: | set to |
|---|
Note:
See TracTickets
for help on using tickets.



Sure, why not? Applied in [8126] for 0.11-stable and [8127] for trunk. Thanks!